]> git.eshelyaron.com Git - emacs.git/commitdiff
Add another check for the required header <linux/filter.h>.
authorPhilipp Stephani <phst@google.com>
Sun, 11 Apr 2021 10:26:13 +0000 (12:26 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 11 Apr 2021 10:26:13 +0000 (12:26 +0200)
* configure.ac: Also check for <linux/filter.h>.
* src/emacs.c (SECCOMP_USABLE): Also check for <linux/filter.h>.

configure.ac
src/emacs.c

index be623c96548e9bb4754d564b9c3db03f45220abd..cb4a9ab2876f614e6e46a2851419b299a2014833 100644 (file)
@@ -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], [],
index bd01d7bb461cb3787f5ff7178468b4de5858a8d9..694d975ec3d7271c32785e10c2c205d7a3ddf580 100644 (file)
@@ -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