1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/xf86-video-xgixp/hotfix-lswap.patch
3 # Copyright (C) 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- xf86-video-xgixp/src/xgi_regs.h.vanilla 2024-04-07 13:36:42.206985723 +0200
15 +++ xf86-video-xgixp/src/xgi_regs.h 2024-04-07 13:40:26.736984738 +0200
20 +#include <byteswap.h>
22 #if X_BYTE_ORDER == X_BIG_ENDIAN
23 -# define BE_SWAP32(v) (lswapl(v))
24 -# define BE_SWAP16(v) (lswaps(v))
25 +# define BE_SWAP32(v) (bswap_32(v))
26 +# define BE_SWAP16(v) (bswap_16(v))
28 # define BE_SWAP32(v) (v)
29 # define BE_SWAP16(v) (v)