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:
parent
3cf9e2a6e3
commit
25937821bc
2 changed files with 23 additions and 7 deletions
10
configure.ac
10
configure.ac
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue