Commit 5804c995 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Use the new HAVE_NI_WITHSCOPEID define instead of merely checking for the

existance of NI_WITHSCOPEID since some platforms have that define but still
can't function with it set.
parent 13a6f853
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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