mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
21 lines
590 B
Diff
21 lines
590 B
Diff
--- numactl-2.0.11/syscall.c.orig
|
|
+++ numactl-2.0.11/syscall.c
|
|
@@ -115,14 +115,16 @@
|
|
|
|
#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.
|
|
The version cut-off is rather arbitary and could be probably
|
|
earlier. */
|
|
|
|
-#define syscall6 syscall
|
|
+# 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. */
|