Fix unused goto label gcc warning
[openssl.git] / crypto / bio / b_addr.c
index 40cf89da5b08c914cce0a60d456ec9d05305b62e..4652003149287ff94d19b1c3ac9f767acd3e5528 100644 (file)
@@ -697,7 +697,9 @@ int BIO_lookup_ex(const char *host, const char *service, int lookup_type,
         /* Note that |res| SHOULD be a 'struct addrinfo **' thanks to
          * macro magic in bio_local.h
          */
+# if defined(AI_ADDRCONFIG) && defined(AI_NUMERICHOST)
       retry:
+# endif
         switch ((gai_ret = getaddrinfo(host, service, &hints, res))) {
 # ifdef EAI_SYSTEM
         case EAI_SYSTEM: