summaryrefslogtreecommitdiff
path: root/lib/if2ip.h
diff options
context:
space:
mode:
authorMAntoniak <47522782+MAntoniak@users.noreply.github.com>2022-02-07 20:47:09 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-02-13 12:08:50 +0100
commit06eb208126e1c2ba37817c6f1f1d60f7975100b5 (patch)
tree943fad64136a2fdcd4caad2b441bb140411cb9b2 /lib/if2ip.h
parentae5e57c3042011d7aee64621a19fc01dfa2d1193 (diff)
downloadcurl-06eb208126e1c2ba37817c6f1f1d60f7975100b5.tar.gz
misc: remove unused data when IPv6 is not supported
Closes #8430
Diffstat (limited to 'lib/if2ip.h')
-rw-r--r--lib/if2ip.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/if2ip.h b/lib/if2ip.h
index 8e21eace5..a360d4a0e 100644
--- a/lib/if2ip.h
+++ b/lib/if2ip.h
@@ -42,8 +42,12 @@ typedef enum {
IF2IP_FOUND = 2 /* The address has been stored in "buf" */
} if2ip_result_t;
-if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope,
- unsigned int local_scope_id, const char *interf,
+if2ip_result_t Curl_if2ip(int af,
+#ifdef ENABLE_IPV6
+ unsigned int remote_scope,
+ unsigned int local_scope_id,
+#endif
+ const char *interf,
char *buf, int buf_size);
#ifdef __INTERIX