Commit 85b69ed5 authored by halton.huo's avatar halton.huo Committed by Commit bot

libevent: Only define _GNU_SOURCE if it is not already defined.

This change is picked from https://github.com/libevent/libevent/commit/ea6b1df

BUG=455089

Review URL: https://codereview.chromium.org/895323002

Cr-Commit-Position: refs/heads/master@{#314761}
parent a3566c5c
...@@ -23,3 +23,4 @@ static library using GYP. ...@@ -23,3 +23,4 @@ static library using GYP.
nacl_nonsfi/event-config.h are derived from linux/ counterparts. nacl_nonsfi/event-config.h are derived from linux/ counterparts.
nacl_nonsfi/random.c is also added to provide the random() function, nacl_nonsfi/random.c is also added to provide the random() function,
which is missing in the newlib-based PNaCl toolchain. which is missing in the newlib-based PNaCl toolchain.
8) Apply https://github.com/libevent/libevent/commit/ea6b1df
...@@ -55,7 +55,9 @@ ...@@ -55,7 +55,9 @@
#endif #endif
/* #define _POSIX_C_SOURCE 200507 */ /* #define _POSIX_C_SOURCE 200507 */
#if !defined(_GNU_SOURCE)
#define _GNU_SOURCE #define _GNU_SOURCE
#endif
#ifdef DNS_USE_CPU_CLOCK_FOR_ID #ifdef DNS_USE_CPU_CLOCK_FOR_ID
#ifdef DNS_USE_OPENSSL_FOR_ID #ifdef DNS_USE_OPENSSL_FOR_ID
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment