Only define _GNU_SOURCE if it is not already defined.

This commit is contained in:
Joachim Bauch 2009-12-08 15:38:34 -05:00 committed by Nick Mathewson
parent 70cdfe49fa
commit ea6b1df288

View 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