]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Add sys/syscall.h for syscall numbers.
authorDarren Tucker <dtucker@dtucker.net>
Wed, 15 Apr 2020 00:58:02 +0000 (10:58 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 15 Apr 2020 00:58:02 +0000 (10:58 +1000)
In some architecture/libc configurations we need to explicitly include
sys/syscall.h for the syscall number (__NR_xxx) definitions.  bz#3085,
patch from blowfist at xroutine.net.

sandbox-seccomp-filter.c

index f80981faf21c411944f4268e9bd65a6e8c717b14..e0768c0636ede1f20ad67ef14b09747830ca3048 100644 (file)
@@ -43,6 +43,7 @@
 #include <sys/resource.h>
 #include <sys/prctl.h>
 #include <sys/mman.h>
+#include <sys/syscall.h>
 
 #include <linux/net.h>
 #include <linux/audit.h>