Commit 780d6051 authored by Emden R. Gansner's avatar Emden R. Gansner

Fix bug 2406.

parent 73590c8d
......@@ -37,6 +37,26 @@
#endif
#include <netdb.h>
/* AI_NUMERICSERV as a value for the `ai_flags' member
* of `struct addrinfo' of header <netdb.h> has only
* been available since:
*
* POSIX 1003.1-2008, Issue 7
* glibc 2.3.4
* Mac OS X 10.6
* etc.
*
* Fortunately, its main purpose seems to be only
* to optimize calls of `getaddrinfo', and because it
* is meant to be a bit flag, it can therefore be
* [relatively] safely ignored by defining it to have
* the value zero.
*/
#ifndef AI_NUMERICSERV
#define AI_NUMERICSERV 0
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment