Make pthread_setname_np optional for older glibc.

This commit is contained in:
Johns
2011-12-31 17:28:58 +01:00
parent 0c7170989d
commit c8c760a069
3 changed files with 9 additions and 0 deletions

View File

@@ -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"