summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-21 22:07:23 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-21 22:08:06 +0100
commit0b9fbc68d060da006b68b44b690ccc9e826c851b (patch)
tree675876e24f0c6fc768115fcfb4c1aeb265e498c3 /streamer.c
parent454f852f361477b0f365a9705574a700339497ac (diff)
few fixes to compile on non-linux plaftorms
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/streamer.c b/streamer.c
index a196e33a..46426f9a 100644
--- a/streamer.c
+++ b/streamer.c
@@ -21,7 +21,9 @@
#include <assert.h>
#include <unistd.h>
#include <samplerate.h>
+#ifdef __linux__
#include <sys/prctl.h>
+#endif
#include <sys/time.h>
#include "threading.h"
#include "codec.h"
@@ -257,7 +259,9 @@ streamer_read_async (char *bytes, int size);
void
streamer_thread (void *ctx) {
+#ifdef __linux__
prctl (PR_SET_NAME, "deadbeef-stream", 0, 0, 0, 0);
+#endif
codecleft = 0;
while (!streaming_terminate) {