void-packages/srcpkgs/numactl/patches/musl.patch

23 lines
599 B
Diff

__GLIBC_PREREQ is only defined with glibc, so that only process it with __GLIBC__.
--- a/syscall.c
+++ b/syscall.c
@@ -153,7 +153,8 @@
# define __GLIBC_PREREQ(x,y) 0
#endif
-#if defined(__GLIBC__) && __GLIBC_PREREQ(2, 11)
+#if defined(__GLIBC__)
+# if __GLIBC_PREREQ(2, 11)
/* glibc 2.11 seems to have working 6 argument sycall. Use the
glibc supplied syscall in this case.
@@ -161,6 +162,7 @@
earlier. */
#define syscall6 syscall
+#endif
#elif defined(__x86_64__)
/* 6 argument calls on x86-64 are often buggy in both glibc and
asm/unistd.h. Add a working version here. */