]> andersk Git - openssh.git/commitdiff
- (dtucker) [openbsd-compat/fake-rfc2553.h] Check for EAI_* defines
authordtucker <dtucker>
Wed, 3 Aug 2005 00:57:15 +0000 (00:57 +0000)
committerdtucker <dtucker>
Wed, 3 Aug 2005 00:57:15 +0000 (00:57 +0000)
   individually and use a value less likely to collide with real values from
   netdb.h.  Fixes compile warnings on FreeBSD 5.3.  ok djm@

ChangeLog
openbsd-compat/fake-rfc2553.h

index 221724193d212d7437a0b582bd70bcaf765b529f..9fc7d1e4f3df56e1bef68b40ac51da85ee7d988e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
index fcf080564e6b95f3d60a66be6afef25e990e666c..67cbc3fff82f0b4f830e54b3ec558aeb3d90126a 100644 (file)
@@ -114,10 +114,16 @@ struct sockaddr_in6 {
 #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
This page took 0.067716 seconds and 5 git commands to generate.