2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

4474. [bug] win32: call WSAStartup in fromtext_in_wks so that

getprotobyname and getservbyname work.  [RT #43197]

(cherry picked from commit 82a50a619a)
This commit is contained in:
Mark Andrews
2016-10-05 12:29:00 +11:00
parent fe4d0fbc7c
commit f77ee20a6c
4 changed files with 55 additions and 10 deletions

View File

@@ -58,6 +58,19 @@
} \
} while (0)
#define CHECK(op) \
do { result = (op); \
if (result != ISC_R_SUCCESS) goto cleanup; \
} while (0)
#define CHECKTOK(op) \
do { result = (op); \
if (result != ISC_R_SUCCESS) { \
isc_lex_ungettoken(lexer, &token); \
goto cleanup; \
} \
} while (0)
#define DNS_AS_STR(t) ((t).value.as_textregion.base)
#define ARGS_FROMTEXT int rdclass, dns_rdatatype_t type, \