Network Block Device  @PACKAGE_VERSION@
netdb-compat.h
Go to the documentation of this file.
1 #ifndef NETDB_COMPAT_H
2 #define NETDB_COMPAT_H
3 
4 /* AI_NUMERICSERV as a value for the `ai_flags' member
5  * of `struct addrinfo' of header <netdb.h> has only
6  * been available since:
7  *
8  * POSIX 1003.1-2008, Issue 7
9  * glibc 2.3.4
10  * Mac OS X 10.6
11  * etc.
12  *
13  * Fortunately, its main purpose seems to be only
14  * to optimize calls of `getaddrinfo', and because it
15  * is meant to be a bit flag, it can therefore be
16  * [relatively] safely ignored by defining it to have
17  * the value zero.
18  */
19 
20 #ifndef AI_NUMERICSERV
21 #define AI_NUMERICSERV 0
22 #endif
23 
24 #endif