diff options
Diffstat (limited to 'dirmngr/dns-stuff.c')
| -rw-r--r-- | dirmngr/dns-stuff.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dirmngr/dns-stuff.c b/dirmngr/dns-stuff.c index 270717215..4f8fb5f8a 100644 --- a/dirmngr/dns-stuff.c +++ b/dirmngr/dns-stuff.c @@ -2436,6 +2436,12 @@ check_inet_support (int *r_v4, int *r_v6) struct addrinfo *aibuf = NULL; struct addrinfo *ai; + if (windows_semihosted_by_wine) + { + *r_v4 = *r_v6 = 1; + goto leave; + } + ret = getaddrinfo ("..localmachine", NULL, NULL, &aibuf); if (ret) { @@ -2489,6 +2495,7 @@ check_inet_support (int *r_v4, int *r_v6) if (aibuf) freeaddrinfo (aibuf); } + leave: #else /*!HAVE_W32_SYSTEM*/ { /* For now we assume that we have both protocols. */ |
