aboutsummaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-03 16:23:44 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-03 16:23:44 +0200
commit794619ffb4db4af0ddaf890cebe8efd14ffaf5de (patch)
tree1947baa8f6b094877c232ca21848c62a44b164a6 /ConfigureChecks.cmake
parenta79b6fb7c2941e5fd1b58414d1d8778f86ceab5d (diff)
downloadsocket_wrapper-794619ffb4db4af0ddaf890cebe8efd14ffaf5de.tar.gz
socket_wrapper-794619ffb4db4af0ddaf890cebe8efd14ffaf5de.tar.xz
socket_wrapper-794619ffb4db4af0ddaf890cebe8efd14ffaf5de.zip
cmake: Check for getimeofday on MacOSX correctly.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 151745a..ec72b4e 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -91,6 +91,12 @@ check_prototype_definition(gettimeofday
"sys/time.h"
HAVE_GETTIMEOFDAY_TZ)
+check_prototype_definition(gettimeofday
+ "int gettimeofday(struct timeval *tv, void *tzp)"
+ "-1"
+ "sys/time.h"
+ HAVE_GETTIMEOFDAY_TZ_VOID)
+
# IPV6
check_c_source_compiles("
#include <stdlib.h>