diff options
author | Darren Tucker <dtucker@zip.com.au> | 2015-02-21 15:10:33 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2015-02-21 15:10:33 +1100 |
commit | e50e8c97a9cecae1f28febccaa6ca5ab3bc10f54 (patch) | |
tree | ef2e49e129797e656bb38807a9a03a40bef981d8 /defines.h | |
parent | 18a208d6a460d707a45916db63a571e805f5db46 (diff) |
Add null declaration of AI_NUMERICINFO.
Some platforms (older FreeBSD and DragonFly versions) do have
getaddrinfo() but do not have AI_NUMERICINFO. so define it to zero
in those cases.
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -594,6 +594,10 @@ struct winsize { | |||
594 | # undef HAVE_GAI_STRERROR | 594 | # undef HAVE_GAI_STRERROR |
595 | #endif | 595 | #endif |
596 | 596 | ||
597 | #if defined(HAVE_GETADDRINFO) && !defined(HAVE_DECL_AI_NUMERICSERV) | ||
598 | # define AI_NUMERICSERV 0 | ||
599 | #endif | ||
600 | |||
597 | #if defined(BROKEN_UPDWTMPX) && defined(HAVE_UPDWTMPX) | 601 | #if defined(BROKEN_UPDWTMPX) && defined(HAVE_UPDWTMPX) |
598 | # undef HAVE_UPDWTMPX | 602 | # undef HAVE_UPDWTMPX |
599 | #endif | 603 | #endif |