]> granicus.if.org Git - libevent/commitdiff
Remove internal usage of _GNU_SOURCE
authorKevin Bowling <kevin.bowling@kev009.com>
Thu, 23 Dec 2010 06:08:10 +0000 (23:08 -0700)
committerKevin Bowling <kevin.bowling@kev009.com>
Thu, 23 Dec 2010 06:08:10 +0000 (23:08 -0700)
evthread_pthread.c
kqueue.c

index 55495a6ca3a4de11381c296fc3d3258d389a6315..5a56359d299e90c4824f84fd6d7e863851191ee4 100644 (file)
  */
 #include "event2/event-config.h"
 
-/* With glibc we need to define this to get PTHREAD_MUTEX_RECURSIVE. */
-#define _GNU_SOURCE
+/* With glibc we need to define this to get PTHREAD_MUTEX_RECURSIVE.
+ * _GNU_SOURCE, now from event-private
+ */
+#include "event-private.h"
 #include <pthread.h>
 
 struct event_base;
index 920129826f46a6dbe009c3c6d095f8e564e69bee..12d4c19827e8e8a7fe4bb75bbea95e536ac21250 100644 (file)
--- a/kqueue.c
+++ b/kqueue.c
@@ -28,7 +28,7 @@
  */
 #include "event2/event-config.h"
 
-#define _GNU_SOURCE
+#include "event-private.h"
 
 #include <sys/types.h>
 #ifdef _EVENT_HAVE_SYS_TIME_H