ports/comms/gnuradio/patches/patch-gnuradio-runtime_lib_thread_thread_cc

23 lines
690 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
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>