]> granicus.if.org Git - libevent/commitdiff
Only define _GNU_SOURCE if it is not already defined.
authorJoachim Bauch <jojo@struktur.de>
Tue, 8 Dec 2009 20:38:34 +0000 (15:38 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 8 Dec 2009 20:38:34 +0000 (15:38 -0500)
include/event2/util.h

index d96c231b1f2a836b4b1a8e042791f63f9bd081c3..98c26b6136497f3c59d03f55cf08489ff3e780d4 100644 (file)
@@ -57,7 +57,9 @@ extern "C" {
 #endif
 #include <stdarg.h>
 #ifdef _EVENT_HAVE_NETDB_H
+#if !defined(_GNU_SOURCE)
 #define _GNU_SOURCE
+#endif
 #include <netdb.h>
 #endif