mirror of
https://github.com/curl/curl.git
synced 2026-08-11 00:40:55 +03: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
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue