From 3b265412b7fce5e2e56bf130224c38cfc6d3bed2 Mon Sep 17 00:00:00 2001 From: Kevin Bowling Date: Wed, 22 Dec 2010 23:08:10 -0700 Subject: [PATCH] Remove internal usage of _GNU_SOURCE --- evthread_pthread.c | 6 ++++-- kqueue.c | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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 -- 2.50.1