added missing _GNU_SOURCE for pthread_setname_np

This commit is contained in:
john30
2017-03-04 09:06:51 +01:00
parent c8c9e76684
commit 7f142e5916
+4
View File
@@ -20,6 +20,10 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef HAVE_PTHREAD_SETNAME_NP
# define _GNU_SOURCE
#endif
#include "lib/utils/thread.h" #include "lib/utils/thread.h"
#include "lib/utils/clock.h" #include "lib/utils/clock.h"