More correct checking of HAVE_DECL_AI_NUMERICSERV.

This commit is contained in:
Darren Tucker 2015-02-21 15:41:07 +11:00
parent e50e8c97a9
commit 28ba006c1a
1 changed files with 4 additions and 2 deletions

View File

@ -594,8 +594,10 @@ struct winsize {
# undef HAVE_GAI_STRERROR
#endif
#if defined(HAVE_GETADDRINFO) && !defined(HAVE_DECL_AI_NUMERICSERV)
# define AI_NUMERICSERV 0
#if defined(HAVE_GETADDRINFO)
# if defined(HAVE_DECL_AI_NUMERICSERV) && HAVE_DECL_AI_NUMERICSERV == 0
# define AI_NUMERICSERV 0
# endif
#endif
#if defined(BROKEN_UPDWTMPX) && defined(HAVE_UPDWTMPX)