From: Joachim Bauch Date: Tue, 8 Dec 2009 20:38:34 +0000 (-0500) Subject: Only define _GNU_SOURCE if it is not already defined. X-Git-Tag: release-2.0.4-alpha~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea6b1df28806129316f4a6f1ed333b3dcb6052fb;p=libevent Only define _GNU_SOURCE if it is not already defined. --- diff --git a/include/event2/util.h b/include/event2/util.h index d96c231b..98c26b61 100644 --- a/include/event2/util.h +++ b/include/event2/util.h @@ -57,7 +57,9 @@ extern "C" { #endif #include #ifdef _EVENT_HAVE_NETDB_H +#if !defined(_GNU_SOURCE) #define _GNU_SOURCE +#endif #include #endif