Back to index

nbd  3.2
netdb-compat.h
Go to the documentation of this file.
00001 #ifndef NETDB COMPAT_H
00002 #define NETDB_COMPAT_H
00003 
00004 /* AI_NUMERICSERV as a value for the `ai_flags' member
00005  * of `struct addrinfo' of header <netdb.h> has only
00006  * been available since:
00007  *
00008  *   POSIX 1003.1-2008, Issue 7
00009  *   glibc 2.3.4
00010  *   Mac OS X 10.6
00011  *   etc.
00012  *
00013  * Fortunately, its main purpose seems to be only
00014  * to optimize calls of `getaddrinfo', and because it
00015  * is meant to be a bit flag, it can therefore be
00016  * [relatively] safely ignored by defining it to have
00017  * the value zero.
00018  */
00019 
00020 #ifndef AI_NUMERICSERV
00021 #define AI_NUMERICSERV 0
00022 #endif
00023 
00024 #endif