]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
if2ip: build the function also if FTP is present
authorDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2025 07:26:01 +0000 (09:26 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2025 09:25:25 +0000 (11:25 +0200)
Previously it was not compiled if CURL_DISABLE_BINDLOCAL is set, but the
FTP code is also using this function.

Easily found by using configure --disable-bindlocal without disabling
FTP.

Closes #16933

lib/if2ip.c

index 7792fa6c4b427c22d7e8235285e7b084fbbc9a7e..a8acd1f2e4b6d950e7dd618a6a9adc916e73da6e 100644 (file)
@@ -93,7 +93,7 @@ unsigned int Curl_ipv6_scope(const struct sockaddr *sa)
 }
 #endif
 
-#ifndef CURL_DISABLE_BINDLOCAL
+#if !defined(CURL_DISABLE_BINDLOCAL) || !defined(CURL_DISABLE_FTP)
 
 #if defined(HAVE_GETIFADDRS)
 
@@ -266,4 +266,4 @@ if2ip_result_t Curl_if2ip(int af,
 
 #endif
 
-#endif /* CURL_DISABLE_BINDLOCAL */
+#endif /* CURL_DISABLE_BINDLOCAL && CURL_DISABLE_FTP */