aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c2
-rw-r--r--lib/url.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index a8923c0cf..6df8f22c6 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -105,7 +105,7 @@
#include "memdebug.h"
#endif
-#ifdef NI_WITHSCOPEID
+#ifdef HAVE_NI_WITHSCOPEID
#define NIFLAGS NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID
#else
#define NIFLAGS NI_NUMERICHOST | NI_NUMERICSERV
diff --git a/lib/url.c b/lib/url.c
index ef2732b06..805acd0e6 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1877,7 +1877,7 @@ static void verboseconnect(struct connectdata *conn,
#ifdef ENABLE_IPV6
{
char hbuf[NI_MAXHOST];
-#ifdef NI_WITHSCOPEID
+#ifdef HAVE_NI_WITHSCOPEID
#define NIFLAGS NI_NUMERICHOST | NI_WITHSCOPEID
#else
#define NIFLAGS NI_NUMERICHOST