SHA256
1
0
forked from pool/libseccomp
libseccomp/builderror-k316.diff

29 lines
781 B
Diff

From: Jan Engelhardt <jengelh@inai.de>
Date: 2016-02-24 13:51:09.385315514 +0100
Fix a build error when your /usr/include/linux/seccomp.h exists,
but is "old enough". (Like openSUSE 13.2 / linux-glibc-devel 3.16).
---
src/system.h | 7 +++++++
1 file changed, 7 insertions(+)
Index: libseccomp/src/system.h
===================================================================
--- libseccomp.orig/src/system.h
+++ libseccomp/src/system.h
@@ -37,6 +37,13 @@ struct db_filter_col;
/* system header file */
#include <linux/seccomp.h>
+#ifndef SECCOMP_SET_MODE_STRICT
+# define SECCOMP_SET_MODE_STRICT 0
+#endif
+#ifndef SECCOMP_SET_MODE_FILTER
+# define SECCOMP_SET_MODE_FILTER 1
+#endif
+
#else
/* NOTE: the definitions below were taken from the Linux Kernel sources */