unix: fix exposing EAI_* glibc-isms

This commit is contained in:
Saúl Ibarra Corretgé 2014-08-21 14:55:28 +02:00
parent d5e6f4372f
commit 76cd67686c
2 changed files with 7 additions and 7 deletions

View File

@ -18,6 +18,13 @@
* IN THE SOFTWARE.
*/
/* Expose glibc-specific EAI_* error codes. Needs to be defined before we
* include any headers.
*/
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
#include "uv.h"
#include "internal.h"

View File

@ -19,13 +19,6 @@
* IN THE SOFTWARE.
*/
/* Expose glibc-specific EAI_* error codes. Needs to be defined before we
* include any headers.
*/
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
#include "uv.h"
#include "uv-common.h"