* configure.ac: Also check for <linux/filter.h>.
* src/emacs.c (SECCOMP_USABLE): Also check for <linux/filter.h>.
HAVE_SECCOMP=no
AC_CHECK_HEADERS(
- [linux/seccomp.h],
+ [linux/seccomp.h linux/filter.h],
[AC_CHECK_DECLS(
[SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_TSYNC],
[HAVE_SECCOMP=yes], [],
# include <sys/socket.h>
#endif
-#if defined HAVE_LINUX_SECCOMP_H \
- && HAVE_DECL_SECCOMP_SET_MODE_FILTER \
+#if defined HAVE_LINUX_SECCOMP_H && defined HAVE_LINUX_FILTER_H \
+ && HAVE_DECL_SECCOMP_SET_MODE_FILTER \
&& HAVE_DECL_SECCOMP_FILTER_FLAG_TSYNC
# define SECCOMP_USABLE 1
#else