summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnuradio-runtime/lib/CMakeLists.txt2
-rw-r--r--gnuradio-runtime/lib/thread/thread.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/CMakeLists.txt b/gnuradio-runtime/lib/CMakeLists.txt
index 1180ebec72..466b29a527 100644
--- a/gnuradio-runtime/lib/CMakeLists.txt
+++ b/gnuradio-runtime/lib/CMakeLists.txt
@@ -148,7 +148,7 @@ IF(HAVE_WINDOWS_H)
ENDIF(HAVE_WINDOWS_H)
#need to link with librt on ubuntu 11.10 for shm_*
-if(LINUX)
+if((LINUX) OR (CMAKE_SYSTEM_NAME STREQUAL "kFreeBSD"))
list(APPEND gnuradio_runtime_libs rt)
endif()
diff --git a/gnuradio-runtime/lib/thread/thread.cc b/gnuradio-runtime/lib/thread/thread.cc
index f2606c71ae..4db91d4dbe 100644
--- a/gnuradio-runtime/lib/thread/thread.cc
+++ b/gnuradio-runtime/lib/thread/thread.cc
@@ -166,7 +166,7 @@ namespace gr {
#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || \
- defined(__FreeBSD__)
+ defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__GNU__)
namespace gr {
namespace thread {