Skip to content
Snippets Groups Projects
Commit d46b170f authored by Daniil Medvedev's avatar Daniil Medvedev
Browse files

Clock module: BSD and ubuntu fix

parent c7410111
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,11 @@ check_function_exists(uuidgen HAVE_UUIDGEN)
# clock_gettime() is not defined on Mac OS X,
# or own (slow) implementation is in third_party/clock_gettime.c
#
check_library_exists(rt clock_gettime "" HAVE_CLOCK_GETTIME)
if (TARGET_OS_LINUX)
check_library_exists(rt clock_gettime "" HAVE_CLOCK_GETTIME)
else()
check_function_exists(clock_gettime HAVE_CLOCK_GETTIME)
endif()
# Checks for libev
include(CheckStructHasMember)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment