1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -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:
Daniel Stenberg 2004-03-31 21:33:52 +00:00
parent 13a6f85320
commit 5804c995e1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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