summaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2015-05-25 18:05:41 -0400
committerAllen Winter <allen.winter@kdab.com>2015-05-25 18:05:41 -0400
commiteee806c912310ed179f8571f008a1f750aabe492 (patch)
tree1e9caecebaa2efe774f09259613f380f0548be4c /ConfigureChecks.cmake
parent6ad3669273c52e0354c874ee6b01dea7ce9c39c5 (diff)
downloadlibical-git-eee806c912310ed179f8571f008a1f750aabe492.tar.gz
cmake discovery for sleep(), Sleep(), nanosleep(), usleep()
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 60745083..b2bc6757 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -17,6 +17,7 @@ if(WIN32 AND MSVC)
check_function_exists(_getpid HAVE__GETPID) #Windows <process.h>
check_function_exists(_mkdir HAVE__MKDIR) #Windows <direct.h>
check_function_exists(_open HAVE__OPEN) #Windows <io.h>
+ check_function_exists(Sleep, HAVE_WINSLEEP) #Windows <windows.h>
check_function_exists(_snprintf HAVE__SNPRINTF) #Windows <stdio.h>
check_function_exists(_stat HAVE__STAT) #Windows <sys/types.h>,<sys/stat.h>
check_function_exists(_strdup HAVE__STRDUP) #Windows <string.h>
@@ -33,6 +34,8 @@ else()
check_function_exists(gmtime_r HAVE_GMTIME_R) #Unix <time.h>
check_function_exists(mkdir HAVE_MKDIR) #Unix <sys/stat.h>,<sys/types.h>
check_function_exists(open HAVE_OPEN) #Unix <sys/stat.h>,<sys/types.h>,<fcntl.h>
+ check_function_exists(sleep HAVE_UNIXSLEEP) #Unix <unistd.h>
+ check_function_exists(nanosleep HAVE_NANOSLEEP) #Unix <time.h>
check_function_exists(signal HAVE_SIGNAL) #Unix <signal.h>
check_function_exists(snprintf HAVE_SNPRINTF) #Unix <stdio.h>
check_function_exists(stat HAVE_STAT) #Unix <sys/stat.h>,<sys/types.h>,<unistd.h>
@@ -41,6 +44,7 @@ else()
check_function_exists(strncasecmp HAVE_STRNCASECMP) #Unix <strings.h>
check_function_exists(read HAVE_READ) #Unix <unistd.h>
check_function_exists(unlink HAVE_UNLINK) #Unix <unistd.h>
+ check_function_exists(usleep HAVE_USLEEP) #Unix <unistd.h>
check_function_exists(waitpid HAVE_WAITPID) #Unix <sys/types.h>,<sys/wait.h>
check_function_exists(write HAVE_WRITE) #Unix <unistd.h>
endif()