diff options
author | Miroslav Lichvar <mlichvar@redhat.com> | 2020-01-27 08:56:15 -0700 |
---|---|---|
committer | Tom Hromatka <tom.hromatka@oracle.com> | 2020-02-03 11:09:00 -0700 |
commit | 7c047c52565e86c6eb600715cf3055dedb146637 (patch) | |
tree | cc86830afb8f287fbc58a9929719bc7153ddb9ba | |
parent | c4901128e67458b6448ae310e5b9949697c3608e (diff) | |
download | libseccomp-7c047c52565e86c6eb600715cf3055dedb146637.tar.gz |
api: define __SNR_ppoll again
Commit bf747eb21e428c2b3ead6ebcca27951b681963a0 accidentally removed the
__SNR_ppoll definition. Add it back, using a PNR value if disabled in
the kernel headers.
Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Acked-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
(cherry picked from commit e3647f5b6b52996bf30d0c2c1d1248e4182e1c1c)
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Acked-by: Paul Moore <paul@paul-moore.com>
-rw-r--r-- | include/seccomp-syscalls.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |