use EAI_NONAME instead of EAI_ADDRFAMILY to check for if we need EAI_ macros

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13169 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-12-02 11:28:31 +00:00
parent c8e6b409c1
commit 627c19cca9

View File

@@ -172,7 +172,7 @@
#define EAI_NOERROR 0 /* no error */
#endif
#ifndef EAI_ADDRFAMILY
#ifndef EAI_NONAME
#define EAI_ADDRFAMILY 1 /* address family for nodename not supported */
#define EAI_AGAIN 2 /* temporary failure in name resolution */
@@ -186,7 +186,7 @@
#define EAI_SOCKTYPE 10 /* ai_socktype not supported */
#define EAI_SYSTEM 11 /* system error returned in errno */
#endif /* EAI_ADDRFAMILY */
#endif /* EAI_NONAME */
/* flags for getaddrinfo() */