bind 9.10.3-P3
[git/cygwin-packages/bind.git] / 9.9.6-lwconfig-win32.patch
CommitLineData
14e2c014
YS
1--- origsrc/bind-9.9.6/lib/lwres/lwconfig.c 2014-10-12 13:53:08.206641700 -0500
2+++ src/bind-9.9.6/lib/lwres/lwconfig.c 2014-10-08 15:57:40.000000000 -0500
3@@ -51,6 +51,11 @@
4 * /etc/resolv.conf
5 */
6
7+#if defined(__CYGWIN__) && !defined(CYGWIN_LWCONFIG_C)
8+#define CYGWIN_LWCONFIG_C
9+#include "win32/lwconfig.c"
10+#else
11+
12 #include <config.h>
13
14 #include <assert.h>
15@@ -774,3 +779,5 @@ lwres_conf_get(lwres_context_t *ctx) {
16
17 return (&ctx->confdata);
18 }
19+
20+#endif /* __CYGWIN__ && !CYGWIN_LWCONFIG_C */
21--- origsrc/bind-9.9.6/lib/lwres/win32/lwconfig.c 2014-10-12 13:53:08.214642700 -0500
22+++ src/bind-9.9.6/lib/lwres/win32/lwconfig.c 2014-10-12 13:35:06.706308600 -0500
23@@ -39,7 +39,12 @@
24 #include "../lwconfig.c"
25 #undef lwres_conf_parse
26
27+#ifdef __CYGWIN__
21266ca2 28+#define if_nametoindex W32API_if_nametoindex
14e2c014 29+#include <windows.h>
14e2c014 30+#endif
21266ca2
YS
31 #include <iphlpapi.h>
32+#undef W32API_if_nametoindex
14e2c014
YS
33
34 #define TCPIP_SUBKEY \
35 "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters"
This page took 0.02238 seconds and 5 git commands to generate.