Skip to content

Commit f4cc5cd

Browse files
committed
fix
1 parent 86c1afa commit f4cc5cd

File tree

5 files changed

+8
-1659
lines changed

5 files changed

+8
-1659
lines changed

deps/cares/cares.gyp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535
'include/ares.h',
3636
'include/ares_version.h',
3737
'include/nameser.h',
38-
'src/acountry.c',
39-
'src/adig.c',
40-
'src/ahost.c',
4138
'src/ares_cancel.c',
4239
'src/ares__close_sockets.c',
4340
'src/ares_create_query.c',

deps/cares/include/ares_build.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@
7272

7373
/* Configure process defines this to 1 when it finds out that system */
7474
/* header file ws2tcpip.h must be included by the external interface. */
75+
76+
#ifdef WIN32
77+
# define CARES_PULL_WS2TCPIP_H 1
78+
#else
79+
# define CARES_PULL_SYS_TYPES_H 1
80+
# define CARES_PULL_SYS_SOCKET_H 1
81+
#endif
82+
7583
/* #undef CARES_PULL_WS2TCPIP_H */
7684
#ifdef CARES_PULL_WS2TCPIP_H
7785
# ifndef WIN32_LEAN_AND_MEAN
@@ -84,14 +92,12 @@
8492

8593
/* Configure process defines this to 1 when it finds out that system */
8694
/* header file sys/types.h must be included by the external interface. */
87-
#define CARES_PULL_SYS_TYPES_H 1
8895
#ifdef CARES_PULL_SYS_TYPES_H
8996
# include <sys/types.h>
9097
#endif
9198

9299
/* Configure process defines this to 1 when it finds out that system */
93100
/* header file sys/socket.h must be included by the external interface. */
94-
#define CARES_PULL_SYS_SOCKET_H 1
95101
#ifdef CARES_PULL_SYS_SOCKET_H
96102
# include <sys/socket.h>
97103
#endif

0 commit comments

Comments
 (0)