From 5269dbb2792fe5baf239e13f36352142364e1581 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 31 Jan 2019 10:00:48 -0600 Subject: update cmake --- CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 46e01ae..4d54ada 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -237,6 +237,21 @@ if(HAVE_GETPAGESIZE) add_definitions(-DHAVE_GETPAGESIZE) endif() +check_function_exists(getprogname HAVE_GETPROGNAME) +if(HAVE_GETPROGNAME) + add_definitions(-DHAVE_GETPROGNAME) +endif() + +check_function_exists(syslog_r HAVE_SYSLOG_R) +if(HAVE_SYSLOG_R) + add_definitions(-DHAVE_SYSLOG_R) +endif() + +check_function_exists(syslog HAVE_SYSLOG) +if(HAVE_SYSLOG) + add_definitions(-DHAVE_SYSLOG) +endif() + check_symbol_exists(timespecsub sys/time.h HAVE_TIMESPECSUB) if(HAVE_TIMESPECSUB) add_definitions(-DHAVE_TIMESPECSUB) -- cgit v1.2.3-55-g6feb