mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
only use libseccomp in x86 (64) and ARM
This commit is contained in:
@@ -282,7 +282,11 @@ AC_ARG_ENABLE(seccomp,
|
||||
seccomp_enabled=$enableval, seccomp_enabled=yes)
|
||||
|
||||
if [ test "$seccomp_enabled" = "yes" ];then
|
||||
AC_LIB_HAVE_LINKFLAGS(seccomp,, [#include <seccomp.h>], [seccomp_init(0);])
|
||||
AC_LIB_HAVE_LINKFLAGS(seccomp,, [#include <seccomp.h>
|
||||
#if !defined(__i386__) && !defined(__arm__) && !defined(__x86_64__)
|
||||
# error 1
|
||||
#endif
|
||||
], [seccomp_init(0);])
|
||||
if [ test -z "$LIBSECCOMP" ];then
|
||||
seccomp_enabled="no"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user