ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 45b18aae75c8c5a9bd887abfd034c7f79ecf8651
parent 7fceb3b625410dfd58504c530062fd49be529799
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat, 26 Oct 2019 21:22:02 +0200

Check if system has seccomp in CMakeLists.txt.

Diffstat:
MCMakeLists.txt | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -10,6 +10,16 @@ list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_OPENBSD_SOURCE) check_function_exists(pledge HAVE_PLEDGE) check_function_exists(strtonum HAVE_STRTONUM) +# Check if system has seccomp +message(STATUS "Looking for seccomp") +find_path(SECCOMP NAMES "linux/seccomp.h") +if(SECCOMP) + message(STATUS "Looking for seccomp - found") + add_definitions(-DHAVE_SECCOMP=1) +else() + message(STATUS "Looking for seccomp - not found") +endif() + # Additional include directories for compat functions include_directories("compat")