Don't enable SECCOMP by default on !Linux systems.

Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: Ib971a94d3ff18353cdb2a2024f78875e9ff6d8b5
pull/3252/head
Gleb Popov 2021-11-12 21:37:50 +03:00 committed by Andras Timar
parent 913ba9318a
commit b88708aac3
1 changed files with 1 additions and 1 deletions

View File

@ -1065,7 +1065,7 @@ AS_IF([test "$ENABLE_IOSAPP" != "true" -a "$ENABLE_ANDROIDAPP" != "true"],
[],
[AC_MSG_ERROR([header Poco/Net/WebSocket.h not found, perhaps you want to use --with-poco-includes])])
DISABLE_SECCOMP=
if test "$enable_seccomp" != "no"; then
if test "$enable_seccomp" != "no" -a `uname -s` = "Linux"; then
AC_CHECK_HEADERS([linux/seccomp.h],
[],
[AC_MSG_ERROR([critical security header linux/seccomp.h not found. If kernel on target system does not support SECCOMP, you can use --disable-seccomp, but mind the security consequences.])])