Skip to content

Commit e3647f5

Browse files
mlichvarpcmoore
authored andcommitted
api: define __SNR_ppoll again
Commit bf747eb accidentally removed the __SNR_ppoll definition. Add it back, using a PNR value if disabled in the kernel headers. Signed-off-by: Miroslav Lichvar <[email protected]> Acked-by: Tom Hromatka <[email protected]> Signed-off-by: Paul Moore <[email protected]>
1 parent 19af04d commit e3647f5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

include/seccomp-syscalls.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@
272272
#define __PNR_timerfd_gettime64 -10238
273273
#define __PNR_timerfd_settime64 -10239
274274
#define __PNR_utimensat_time64 -10240
275+
#define __PNR_ppoll -10241
275276

276277
/*
277278
* libseccomp syscall definitions
@@ -1359,6 +1360,12 @@
13591360
#define __SNR_poll __PNR_poll
13601361
#endif
13611362

1363+
#ifdef __NR_ppoll
1364+
#define __SNR_ppoll __NR_ppoll
1365+
#else
1366+
#define __SNR_ppoll __PNR_ppoll
1367+
#endif
1368+
13621369
#ifdef __NR_ppoll_time64
13631370
#define __SNR_ppoll_time64 __NR_ppoll_time64
13641371
#else

0 commit comments

Comments
 (0)