File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1515 *
1616 * Copyright (c) 2003, PostgreSQL Global Development Group
1717 *
18- * $Id: getaddrinfo.h,v 1.10 2003/08/08 21:42:31 momjian Exp $
18+ * $Id: getaddrinfo.h,v 1.11 2003/08/14 18:32:55 tgl Exp $
1919 *
2020 *-------------------------------------------------------------------------
2121 */
3131/* Various macros that ought to be in <netdb.h>, but might not be */
3232
3333#ifndef EAI_FAIL
34-
3534#define EAI_BADFLAGS -1
3635#define EAI_NONAME -2
3736#define EAI_AGAIN -3
4645#ifndef AI_PASSIVE
4746#define AI_PASSIVE 0x0001
4847#endif
48+
4949#ifndef AI_NUMERICHOST
50+ /*
51+ * some platforms don't support AI_NUMERICHOST; define as zero if using
52+ * the system version of getaddrinfo...
53+ */
54+ #if defined(HAVE_STRUCT_ADDRINFO ) && defined(HAVE_GETADDRINFO )
55+ #define AI_NUMERICHOST 0
56+ #else
5057#define AI_NUMERICHOST 0x0004
5158#endif
59+ #endif
5260
5361#ifndef NI_NUMERICHOST
5462#define NI_NUMERICHOST 1
You can’t perform that action at this time.
0 commit comments