From 90d4d09ca2e0eab60b903503c08a342cf20ad1c0 Mon Sep 17 00:00:00 2001 From: hagen Date: Wed, 17 Sep 2014 05:10:03 +0000 Subject: [PATCH] * freebsd build fixes --- build/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt index a45117a5..ea02f4a6 100644 --- a/build/CMakeLists.txt +++ b/build/CMakeLists.txt @@ -75,6 +75,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux") list (APPEND SOURCES "../DaemonLinux.cpp") elseif (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") list (APPEND SOURCES "../DaemonLinux.cpp") + # "'sleep_for' is not a member of 'std::this_thread'" in gcc 4.7/4.8 + add_definitions( "-D_GLIBCXX_USE_NANOSLEEP=1" ) elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows") list (APPEND SOURCES "../DaemonWin32.cpp") endif ()