diff options
author | 2010-01-23 03:00:04 +0700 | |
---|---|---|
committer | 2010-01-22 21:34:54 +0100 | |
commit | 706a6f88f46a203adfeada1f3d98262d7cc47e47 (patch) | |
tree | 3b42d47a03cedc795a64e5fa02ada74f74de5049 /plugins | |
parent | 11fa9174dad72268c5468765ecc81112b1ca95d3 (diff) |
bsd compile fixes
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ffap/ffap.c | 2 | ||||
-rw-r--r-- | plugins/ffmpeg/ffmpeg.c | 5 | ||||
-rw-r--r-- | plugins/nullout/nullout.c | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/plugins/ffap/ffap.c b/plugins/ffap/ffap.c index 53990014..60985729 100644 --- a/plugins/ffap/ffap.c +++ b/plugins/ffap/ffap.c @@ -33,7 +33,7 @@ #include <string.h> #include <limits.h> #include <stdlib.h> -#include <alloca.h> +//#include <alloca.h> #include <assert.h> #include "../../deadbeef.h" diff --git a/plugins/ffmpeg/ffmpeg.c b/plugins/ffmpeg/ffmpeg.c index c87f8cf6..bcaa2632 100644 --- a/plugins/ffmpeg/ffmpeg.c +++ b/plugins/ffmpeg/ffmpeg.c @@ -20,7 +20,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <alloca.h> +//#include <alloca.h> #include <errno.h> #include "../../deadbeef.h" @@ -39,7 +39,10 @@ #include <ffmpeg/avutil.h> #include <ffmpeg/avstring.h> #define AVERROR_EOF AVERROR(EPIPE) + +#if LIBAVFORMAT_VERSION_MAJOR < 53 #define av_register_protocol register_protocol +#endif #endif diff --git a/plugins/nullout/nullout.c b/plugins/nullout/nullout.c index e8da5255..8720de6d 100644 --- a/plugins/nullout/nullout.c +++ b/plugins/nullout/nullout.c @@ -17,7 +17,9 @@ */ #include <stdint.h> #include <unistd.h> +#ifdef __linux__ #include <sys/prctl.h> +#endif #include <stdio.h> #include <string.h> #include "../../deadbeef.h" @@ -164,7 +166,9 @@ pnull_get_endianness (void) { static void pnull_thread (void *context) { +#ifdef __linux__ prctl (PR_SET_NAME, "deadbeef-null", 0, 0, 0, 0); +#endif for (;;) { if (null_terminate) { break; |