Commit ac3020f45b594a6ad618faed5b7d06ab1f20c3bd

Con Kolivas 2012-12-10T21:55:28

Include prctl header for thread renaming to work.

diff --git a/util.c b/util.c
index 77867b7..4d9ee96 100644
--- a/util.c
+++ b/util.c
@@ -8,7 +8,6 @@
  * any later version.  See COPYING for more details.
  */
 
-#define _GNU_SOURCE
 #include "config.h"
 
 #include <stdio.h>
@@ -23,6 +22,9 @@
 #include <unistd.h>
 #include <sys/types.h>
 #ifndef WIN32
+# ifdef __linux
+#  include <sys/prctl.h>
+# endif
 # include <sys/socket.h>
 # include <netinet/in.h>
 # include <netinet/tcp.h>