1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

Also check for needed seccomp macros.

It looks like these are not available on some versions of GNU/Linux,
breaking the build.

* configure.ac: Also check for needed seccomp macros.
* src/emacs.c (SECCOMP_USABLE): New macro.
(usage_message, main, standard_args): Use it.
This commit is contained in:
Philipp Stephani 2021-04-11 12:00:35 +02:00
parent 3cf9e2a6e3
commit 25937821bc
2 changed files with 23 additions and 7 deletions

View file

@ -4179,7 +4179,15 @@ fi
AC_SUBST([BLESSMAIL_TARGET])
AC_SUBST([LIBS_MAIL])
AC_CHECK_HEADERS([linux/seccomp.h], [HAVE_SECCOMP=yes])
HAVE_SECCOMP=no
AC_CHECK_HEADERS(
[linux/seccomp.h],
[AC_CHECK_DECLS(
[SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_TSYNC],
[HAVE_SECCOMP=yes], [],
[[
#include <linux/seccomp.h>
]])])
LIBSECCOMP=
AC_CHECK_HEADER([seccomp.h],