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>.
This commit is contained in:
parent
25937821bc
commit
0334fa0532
2 changed files with 3 additions and 3 deletions
|
@ -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], [],
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue