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 ()