summaryrefslogtreecommitdiff
path: root/core/libseccomp/libseccomp-2.4.2-ppoll.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-02-23 13:08:24 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-02-23 13:08:24 +0100
commit3563bf58d910df7568d6adfeda464cd8b1e81f47 (patch)
tree44c1da38582a588d9ecbf2d1c9790dfa3d0439c3 /core/libseccomp/libseccomp-2.4.2-ppoll.patch
parentf85231ef96ff5f5ca8be780931a78a82b7318829 (diff)
downloadpackages-3563bf58d910df7568d6adfeda464cd8b1e81f47.tar.xz
core/libseccomp: 2.4.1-4 shims for 2.4.2 and packport ppoll
Diffstat (limited to 'core/libseccomp/libseccomp-2.4.2-ppoll.patch')
-rw-r--r--core/libseccomp/libseccomp-2.4.2-ppoll.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/libseccomp/libseccomp-2.4.2-ppoll.patch b/core/libseccomp/libseccomp-2.4.2-ppoll.patch
new file mode 100644
index 00000000..884afb8a
--- /dev/null
+++ b/core/libseccomp/libseccomp-2.4.2-ppoll.patch
@@ -0,0 +1,25 @@
+diff --git a/include/seccomp-syscalls.h b/include/seccomp-syscalls.h
+index 6457592..3c958df 100644
+--- a/include/seccomp-syscalls.h
++++ b/include/seccomp-syscalls.h
+@@ -272,6 +272,7 @@
+ #define __PNR_timerfd_gettime64 -10238
+ #define __PNR_timerfd_settime64 -10239
+ #define __PNR_utimensat_time64 -10240
++#define __PNR_ppoll -10241
+
+ /*
+ * libseccomp syscall definitions
+@@ -1359,6 +1360,12 @@
+ #define __SNR_poll __PNR_poll
+ #endif
+
++#ifdef __NR_ppoll
++#define __SNR_ppoll __NR_ppoll
++#else
++#define __SNR_ppoll __PNR_ppoll
++#endif
++
+ #ifdef __NR_ppoll_time64
+ #define __SNR_ppoll_time64 __NR_ppoll_time64
+ #else