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:
@@ -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, \
|
||||
|
Reference in New Issue
Block a user