23 lines
690 B
Text
23 lines
690 B
Text
|
Index: gnuradio-runtime/lib/thread/thread.cc
|
||
|
--- gnuradio-runtime/lib/thread/thread.cc.orig
|
||
|
+++ gnuradio-runtime/lib/thread/thread.cc
|
||
|
@@ -147,7 +147,7 @@ void set_thread_name(gr_thread_t thread, std::string n
|
||
|
|
||
|
#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || \
|
||
|
defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__GNU__) || \
|
||
|
- defined(__NetBSD__)
|
||
|
+ defined(__NetBSD__) || defined(__OpenBSD__)
|
||
|
|
||
|
namespace gr {
|
||
|
namespace thread {
|
||
|
@@ -219,7 +219,9 @@ void set_thread_name(gr_thread_t thread, std::string n
|
||
|
#else
|
||
|
|
||
|
#include <pthread.h>
|
||
|
+#ifndef __OpenBSD__
|
||
|
#include <sys/prctl.h>
|
||
|
+#endif
|
||
|
#include <sstream>
|
||
|
#include <stdexcept>
|
||
|
|