summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-01-11 08:15:44 -0800
committerChris Robinson <[email protected]>2008-01-11 08:15:44 -0800
commite1d0ad749bd5772d968aa8b5ed600dee905310a4 (patch)
tree64de690a4be8e58532bc38aeb8d97a69788e6e74 /CMakeLists.txt
parent2a5a5b5c1b97cfe66149bd77b4402e80f69c37c1 (diff)
Use nanosleep instead of usleep
So not to rely on the non-standard unistd.h header
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 32f717a2..4955d250 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -137,8 +137,8 @@ IF(NOT "${HAVE_WINDOWS_H}")
MESSAGE(FATAL_ERROR "No timing function found!")
ENDIF()
- CHECK_FUNCTION_EXISTS(usleep HAVE_USLEEP)
- IF(NOT "${HAVE_USLEEP}")
+ CHECK_FUNCTION_EXISTS(nanosleep HAVE_NANOSLEEP)
+ IF(NOT "${HAVE_NANOSLEEP}")
MESSAGE(FATAL_ERROR "No sleep function found!")
ENDIF()