individually and use a value less likely to collide with real values from
netdb.h. Fixes compile warnings on FreeBSD 5.3. ok djm@
+20050803
+ - (dtucker) [openbsd-compat/fake-rfc2553.h] Check for EAI_* defines
+ individually and use a value less likely to collide with real values from
+ netdb.h. Fixes compile warnings on FreeBSD 5.3. ok djm@
+
20050802
- (dtucker) OpenBSD CVS Sync
- dtucker@cvs.openbsd.org 2005/07/27 10:39:03
#endif /* !NI_MAXHOST */
#ifndef EAI_NODATA
-# define EAI_NODATA 1
-# define EAI_MEMORY 2
-# define EAI_NONAME 3
-# define EAI_SYSTEM 4
+# define EAI_NODATA (MAX_INT - 1)
+#endif
+#ifndef EAI_MEMORY
+# define EAI_MEMORY (MAX_INT - 2)
+#endif
+#ifndef EAI_NONAME
+# define EAI_NONAME (MAX_INT - 3)
+#endif
+#ifndef EAI_SYSTEM
+# define EAI_SYSTEM (MAX_INT - 4)
#endif
#ifndef HAVE_STRUCT_ADDRINFO