From 8b6d454cf5606540ab23ce7479631f4f09af6d34 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Mon, 4 Jan 2021 20:41:32 +0100 Subject: Mesa: make compilation with work with musl Fixes ArcticaProject/nx-lib#975 --- nx-X11/extras/Mesa.patches_6.4.2/1001_support_musl | 12 ++++++++++++ nx-X11/extras/Mesa.patches_6.4.2/series | 1 + 2 files changed, 13 insertions(+) create mode 100644 nx-X11/extras/Mesa.patches_6.4.2/1001_support_musl diff --git a/nx-X11/extras/Mesa.patches_6.4.2/1001_support_musl b/nx-X11/extras/Mesa.patches_6.4.2/1001_support_musl new file mode 100644 index 000000000..72b8d90bd --- /dev/null +++ b/nx-X11/extras/Mesa.patches_6.4.2/1001_support_musl @@ -0,0 +1,12 @@ +make compilation work on any non-linux glibc system. See ArcticaProject/nx-libs#975 +--- a/src/mesa/main/glheader.h ++++ b/src/mesa/main/glheader.h +@@ -62,7 +62,7 @@ + #include + #include + #include +-#if defined(__linux__) && defined(__i386__) ++#if defined(__GLIBC__) && defined(__i386__) + #include + #endif + #endif diff --git a/nx-X11/extras/Mesa.patches_6.4.2/series b/nx-X11/extras/Mesa.patches_6.4.2/series index 4e6c15934..db40c2b60 100644 --- a/nx-X11/extras/Mesa.patches_6.4.2/series +++ b/nx-X11/extras/Mesa.patches_6.4.2/series @@ -5,3 +5,4 @@ 5001_nasty-typo-fixes.patch 4005_adapt-all-libX11-include-paths-to-libNX_X11.patch 5002_silence-uninitialized.diff +1001_support_musl -- cgit v1.2.3 From 46c9c493f083ef180c690533eef218eb82684eaa Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Mon, 4 Jan 2021 20:44:24 +0100 Subject: Xext: include limits.h Is required for compilations with musl. See ArcticaProjects/nx-libs#975 and ArcticaProjects/nx-libs#976 --- nx-X11/programs/Xserver/Xext/xf86bigfont.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nx-X11/programs/Xserver/Xext/xf86bigfont.c b/nx-X11/programs/Xserver/Xext/xf86bigfont.c index 352e40261..a31ffd02c 100644 --- a/nx-X11/programs/Xserver/Xext/xf86bigfont.c +++ b/nx-X11/programs/Xserver/Xext/xf86bigfont.c @@ -46,6 +46,7 @@ Linux 2.0.x and 2.2.x define SHMLBA as PAGE_SIZE, but forget to define PAGE_SIZE. It is defined in . */ #include +#include #endif #ifdef SVR4 #include -- cgit v1.2.3