summaryrefslogtreecommitdiff
path: root/lib/if2ip.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-02-11 12:43:00 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-02-11 23:27:37 +0100
commit7e65d91071aeee15117edc9953e4d9ba4912848c (patch)
treeaa46bcbe9ca760b0e60e2d733f71a1c6523fd07f /lib/if2ip.h
parent186340c9cd02ae383bc6b39c353ad5317d4ee574 (diff)
downloadcurl-7e65d91071aeee15117edc9953e4d9ba4912848c.tar.gz
if2ip: make Curl_ipv6_scope a blank macro when IPv6-disabled
Closes #8439
Diffstat (limited to 'lib/if2ip.h')
-rw-r--r--lib/if2ip.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/if2ip.h b/lib/if2ip.h
index e074e476d..8e21eace5 100644
--- a/lib/if2ip.h
+++ b/lib/if2ip.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2020, 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -30,7 +30,11 @@
#define IPV6_SCOPE_UNIQUELOCAL 3 /* Unique local */
#define IPV6_SCOPE_NODELOCAL 4 /* Loopback. */
+#ifdef ENABLE_IPV6
unsigned int Curl_ipv6_scope(const struct sockaddr *sa);
+#else
+#define Curl_ipv6_scope(x) 0
+#endif
typedef enum {
IF2IP_NOT_FOUND = 0, /* Interface not found */