logswan

Fast Web log analyzer using probabilistic data structures
Log | Files | Refs | README | LICENSE

commit cb335a36b55a50590f56e7cf83ae32d6fd4eb92d
parent 867659ab56bd7480508a2b56725b91579db4c0f1
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 13 Jan 2016 18:43:07 +0100

Use CMake to check if the system has OpenBSD's pledge available

Diffstat:
MCMakeLists.txt | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -19,9 +19,10 @@ project(logswan C) include(CheckFunctionExists) include(GNUInstallDirs) -# Check if system has strtonum +# Check if system has strtonum and pledge list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_OPENBSD_SOURCE) check_function_exists(strtonum HAVE_STRTONUM) +check_function_exists(pledge HAVE_PLEDGE) # Additional include directories for compat functions + dependencies include_directories("compat")