Refactor the negotiate() and connected functions
[nbd.git] / netdb-compat.h
blobde2625b39d67bde797522918277251d4b6fea779
1 #ifndef NETDB_COMPAT_H
2 #define NETDB_COMPAT_H
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:
8 * POSIX 1003.1-2008, Issue 7
9 * glibc 2.3.4
10 * Mac OS X 10.6
11 * etc.
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.
20 #ifndef AI_NUMERICSERV
21 #define AI_NUMERICSERV 0
22 #endif
24 #endif