summaryrefslogtreecommitdiffstats
path: root/src/Utils.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-25 05:22:59 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-25 05:22:59 +0100
commitb855183f0878fac7f09017539b6a4504e00cf6e4 (patch)
treeb98753dac466735020681b7534787b2133fd204c /src/Utils.cpp
parent8ff127f33a6173d612a00a7c3cb4dd25b9bffcd0 (diff)
parent515959935cd7c741db5aca5b20bfb7611749fbfb (diff)
downloaddabmod-b855183f0878fac7f09017539b6a4504e00cf6e4.tar.gz
dabmod-b855183f0878fac7f09017539b6a4504e00cf6e4.tar.bz2
dabmod-b855183f0878fac7f09017539b6a4504e00cf6e4.zip
Merge branch 'next' into outputRefactoring
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r--src/Utils.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 385253b..f113be3 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -27,7 +27,9 @@
#include "Utils.h"
#include "GainControl.h"
-#include <sys/prctl.h>
+#if defined(HAVE_PRCTL)
+# include <sys/prctl.h>
+#endif
#include <pthread.h>
static void printHeader()
@@ -160,7 +162,9 @@ int set_realtime_prio(int prio)
void set_thread_name(const char *name)
{
+#if defined(HAVE_PRCTL)
prctl(PR_SET_NAME,name,0,0,0);
+#endif
}
double parseChannel(const std::string& chan)