mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Only define _GNU_SOURCE if it is not already defined.
This commit is contained in:
parent
70cdfe49fa
commit
ea6b1df288
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user