aboutsummaryrefslogtreecommitdiffstats
path: root/main/numactl/musl.patch
diff options
context:
space:
mode:
authorHenrik Riomar <henrik.riomar@gmail.com>2019-02-25 08:00:40 +0100
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-02-25 14:43:30 +0000
commit495276ab55d55bff4af29a116d2085ad58e21d73 (patch)
tree6fd6d76a2b91654ac2fb3a9f54fe615e011b0108 /main/numactl/musl.patch
parenteaf19f88756e63006252a9d72a4e1af3ae4613e4 (diff)
downloadaports-495276ab55d55bff4af29a116d2085ad58e21d73.tar.bz2
aports-495276ab55d55bff4af29a116d2085ad58e21d73.tar.xz
main/numactl: move from testing
Diffstat (limited to 'main/numactl/musl.patch')
-rw-r--r--main/numactl/musl.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/numactl/musl.patch b/main/numactl/musl.patch
new file mode 100644
index 0000000000..009233f630
--- /dev/null
+++ b/main/numactl/musl.patch
@@ -0,0 +1,21 @@
+--- 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. */