From: Kevin Bowling Date: Thu, 23 Dec 2010 06:08:10 +0000 (-0700) Subject: Remove internal usage of _GNU_SOURCE X-Git-Tag: release-2.1.1-alpha~320^2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b265412b7fce5e2e56bf130224c38cfc6d3bed2;p=libevent Remove internal usage of _GNU_SOURCE --- diff --git a/evthread_pthread.c b/evthread_pthread.c index 55495a6c..5a56359d 100644 --- a/evthread_pthread.c +++ b/evthread_pthread.c @@ -25,8 +25,10 @@ */ #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 struct event_base; diff --git a/kqueue.c b/kqueue.c index 92012982..12d4c198 100644 --- a/kqueue.c +++ b/kqueue.c @@ -28,7 +28,7 @@ */ #include "event2/event-config.h" -#define _GNU_SOURCE +#include "event-private.h" #include #ifdef _EVENT_HAVE_SYS_TIME_H