package/x11r7/xwayland: fix uClibc build

Copy patch from xserver_xorg-server to fix build errors with uClibc.

Fixes:
https://autobuild.buildroot.net/results/c03/c03d57ad7ed3feac008091a38ea50bfccfa62b08/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit 4325c62d41)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
Bernd Kuhls
2026-07-12 13:30:55 +02:00
committed by Thomas Perale
parent 1bf3cbd45d
commit 6ca41028c0
2 changed files with 32 additions and 0 deletions

View File

@@ -973,6 +973,7 @@ package/x11r7/xdriver_xf86-video-mach64/0001-cross-compile.patch lib_patch.Upstr
package/x11r7/xdriver_xf86-video-tdfx/0001-cross.patch lib_patch.Upstream
package/x11r7/xserver_xorg-server/0001-include-misc.h-fix-uClibc-build.patch lib_patch.Upstream
package/x11r7/xserver_xorg-server/S40xorg Shellcheck lib_sysv.Variables
package/x11r7/xwayland/0001-include-misc.h-fix-uClibc-build.patch lib_patch.Upstream
package/xl2tp/xl2tpd lib_shellscript.TrailingSpace
package/yajl/0001-Let-the-shared-and-the-static-library-have-the-same-.patch lib_patch.Upstream
package/yajl/0002-cmake-disable-shared-library-build-when-BUILD_SHARED.patch lib_patch.Upstream

View File

@@ -0,0 +1,31 @@
From 2e8fca00f5bdb02f2f59aaa428d1e9d808ab0e86 Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd.kuhls@t-online.de>
Date: Sat, 16 Jun 2018 19:20:16 +0200
Subject: [PATCH] include/misc.h: fix uClibc build
A similar fix was used for Dovecot:
https://www.dovecot.org/list/dovecot/2017-November/110019.html
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
include/misc.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/misc.h b/include/misc.h
index 14920c3c3..390e52b60 100644
--- a/include/misc.h
+++ b/include/misc.h
@@ -185,6 +185,10 @@ typedef struct _xReq *xReqPtr;
#endif
#endif
+#undef bswap_16
+#undef bswap_32
+#undef bswap_64
+
/**
* Calculate the number of bytes needed to hold bits.
* @param bits The minimum number of bits needed.
--
2.17.1