diff options
author | 2010-01-21 22:07:23 +0100 | |
---|---|---|
committer | 2010-01-21 22:08:06 +0100 | |
commit | 0b9fbc68d060da006b68b44b690ccc9e826c851b (patch) | |
tree | 675876e24f0c6fc768115fcfb4c1aeb265e498c3 /streamer.c | |
parent | 454f852f361477b0f365a9705574a700339497ac (diff) |
few fixes to compile on non-linux plaftorms
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |