unix, windows: move includes for EAI constants

This commit is contained in:
Saúl Ibarra Corretgé 2014-08-21 17:00:11 +02:00
parent 76cd67686c
commit a87619ce63
3 changed files with 6 additions and 7 deletions

View File

@ -33,6 +33,9 @@
#include <stdlib.h>
#include <string.h>
/* EAI_* constants. */
#include <netdb.h>
int uv__getaddrinfo_translate_error(int sys_err) {
switch (sys_err) {

View File

@ -32,13 +32,6 @@
# include <net/if.h> /* if_nametoindex */
#endif
/* EAI_* constants. */
#if !defined(_WIN32)
# include <sys/types.h>
# include <sys/socket.h>
# include <netdb.h>
#endif
#define XX(uc, lc) case UV_##uc: return sizeof(uv_##lc##_t);
size_t uv_handle_size(uv_handle_type type) {

View File

@ -26,6 +26,9 @@
#include "internal.h"
#include "req-inl.h"
/* EAI_* constants. */
#include <winsock2.h>
int uv__getaddrinfo_translate_error(int sys_err) {
switch (sys_err) {