mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
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.
This commit is contained in:
parent
13a6f85320
commit
5804c995e1
@ -105,7 +105,7 @@
|
|||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef NI_WITHSCOPEID
|
#ifdef HAVE_NI_WITHSCOPEID
|
||||||
#define NIFLAGS NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID
|
#define NIFLAGS NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID
|
||||||
#else
|
#else
|
||||||
#define NIFLAGS NI_NUMERICHOST | NI_NUMERICSERV
|
#define NIFLAGS NI_NUMERICHOST | NI_NUMERICSERV
|
||||||
|
@ -1877,7 +1877,7 @@ static void verboseconnect(struct connectdata *conn,
|
|||||||
#ifdef ENABLE_IPV6
|
#ifdef ENABLE_IPV6
|
||||||
{
|
{
|
||||||
char hbuf[NI_MAXHOST];
|
char hbuf[NI_MAXHOST];
|
||||||
#ifdef NI_WITHSCOPEID
|
#ifdef HAVE_NI_WITHSCOPEID
|
||||||
#define NIFLAGS NI_NUMERICHOST | NI_WITHSCOPEID
|
#define NIFLAGS NI_NUMERICHOST | NI_WITHSCOPEID
|
||||||
#else
|
#else
|
||||||
#define NIFLAGS NI_NUMERICHOST
|
#define NIFLAGS NI_NUMERICHOST
|
||||||
|
Loading…
Reference in New Issue
Block a user