summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2021-04-11 12:26:13 +0200
committerPhilipp Stephani <phst@google.com>2021-04-11 12:26:13 +0200
commit0334fa0532e63f22486b5142fa399decf54b18c0 (patch)
tree770dade1b2f2f93b2746c61124f50d806ac7000a
parent25937821bc445235d984c4db8cb18dfbacd6a4ff (diff)
downloademacs-0334fa0532e63f22486b5142fa399decf54b18c0.tar.gz
emacs-0334fa0532e63f22486b5142fa399decf54b18c0.tar.bz2
emacs-0334fa0532e63f22486b5142fa399decf54b18c0.zip
Add another check for the required header <linux/filter.h>.
* configure.ac: Also check for <linux/filter.h>. * src/emacs.c (SECCOMP_USABLE): Also check for <linux/filter.h>.
-rw-r--r--configure.ac2
-rw-r--r--src/emacs.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index be623c96548..cb4a9ab2876 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4181,7 +4181,7 @@ AC_SUBST([LIBS_MAIL])
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], [],
diff --git a/src/emacs.c b/src/emacs.c
index bd01d7bb461..694d975ec3d 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -61,8 +61,8 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
# 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