aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/types
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-30 23:16:43 -0800
committerJosh Blum <josh@joshknows.com>2011-01-30 23:16:43 -0800
commita7d7e0d28925b01044ade6a5b9e288af8828239b (patch)
treede2c853229429efb56fb69a9cfaa2bd9fbb987cd /host/lib/types
parent7ffc73fe67ebd88410ce1094d83d6e4809ffb578 (diff)
downloaduhd-a7d7e0d28925b01044ade6a5b9e288af8828239b.tar.gz
uhd-a7d7e0d28925b01044ade6a5b9e288af8828239b.tar.bz2
uhd-a7d7e0d28925b01044ade6a5b9e288af8828239b.zip
uhd: use time spec get_system_time to simplify soft time control
Diffstat (limited to 'host/lib/types')
-rw-r--r--host/lib/types/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/types/CMakeLists.txt b/host/lib/types/CMakeLists.txt
index bcc04e08d..ad625111e 100644
--- a/host/lib/types/CMakeLists.txt
+++ b/host/lib/types/CMakeLists.txt
@@ -58,7 +58,8 @@ CHECK_CXX_SOURCE_COMPILES("
IF(HAVE_CLOCK_GETTIME)
MESSAGE(STATUS " High resolution timing supported through clock_gettime.")
- ADD_DEFINITIONS(-DTIME_SPEC_USE_GETTIME)
+ ADD_DEFINITIONS(-DTIME_SPEC_USE_CLOCK_GETTIME)
+ SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -lrt")
ELSEIF(HAVE_MACH_ABSOLUTE_TIME)
MESSAGE(STATUS " High resolution timing supported through mach_absolute_time.")
ADD_DEFINITIONS(-DTIME_SPEC_USE_MACH_ABSOLUTE_TIME)