diff options
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | audio.c | 4 | ||||
-rw-r--r-- | video.c | 4 |
3 files changed, 9 insertions, 0 deletions
@@ -18,6 +18,7 @@ VERSION = $(shell grep 'static const char \*const VERSION *=' $(PLUGIN).cpp | aw ### Configuration (edit this for your needs) CONFIG := #-DDEBUG +#CONFIG += -DHAVE_PTHREAD_NAME CONFIG += $(shell pkg-config --exists libva && echo "-DUSE_VAAPI") CONFIG += $(shell pkg-config --exists vdpau && echo "-DUSE_VDPAU") @@ -48,6 +48,10 @@ #define __USE_GNU #endif #include <pthread.h> +#ifndef HAVE_PTHREAD_NAME + /// only available with newer glibc +#define pthread_setname_np(thread, name) +#endif #endif #include "ringbuffer.h" @@ -68,6 +68,10 @@ #endif #include <pthread.h> #include <time.h> +#ifndef HAVE_PTHREAD_NAME + /// only available with newer glibc +#define pthread_setname_np(thread, name) +#endif #endif #ifdef USE_XLIB_XCB |