Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Dec 2003 21:50:29 -0600
From:      Ryan Sommers <ryans@gamersimpact.com>
To:        freebsd-current@freebsd.org
Subject:   EAI_NODATA redefined Patch
Message-ID:  <1072324229.662.18.camel@localhost>

next in thread | raw e-mail | index | archive | help

--=-oFPkL/xjN6LzQDEqdTsU
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Attached is a patch to get rid of the "EAI_NODATA redefined" errors in
buildworld. The Makefile lists no MAINTAINER but I know this is contrib
software. Should I submit this as a PR or who is the MAINTAINER?


-- 
Ryan "leadZERO" Sommers
ryans@gamersimpact.com

--=-oFPkL/xjN6LzQDEqdTsU
Content-Disposition: attachment; filename=roken-common.h.diff
Content-Type: text/x-patch; name=roken-common.h.diff; charset=
Content-Transfer-Encoding: 7bit

--- /usr/src/crypto/heimdal/lib/roken/roken-common.h	Wed Dec 24 20:06:14 2003
+++ /usr/src/crypto/heimdal/lib/roken/roken-common.h	Wed Dec 24 21:00:10 2003
@@ -172,6 +172,14 @@
 #define EAI_NOERROR	0	/* no error */
 #endif
 
+/* XXX - EAI_NODATA is marked to be removed from <netdb.h> in Apr 2004
+ * check back here then to see if this is still needed */
+
+#ifdef EAI_NODATA
+#undef EAI_NODATA
+#endif
+#define EAI_NODATA	7	/* no address associated with nodename */
+
 #ifndef EAI_ADDRFAMILY
 
 #define EAI_ADDRFAMILY	1	/* address family for nodename not supported */
@@ -180,7 +188,7 @@
 #define EAI_FAIL	4	/* non-recoverable failure in name resolution */
 #define EAI_FAMILY	5	/* ai_family not supported */
 #define EAI_MEMORY	6	/* memory allocation failure */
-#define EAI_NODATA	7	/* no address associated with nodename */
+# define EAI_NODATA	7	/* no address associated with nodename */
 #define EAI_NONAME	8	/* nodename nor servname provided, or not known */
 #define EAI_SERVICE	9	/* servname not supported for ai_socktype */
 #define EAI_SOCKTYPE   10	/* ai_socktype not supported */

--=-oFPkL/xjN6LzQDEqdTsU--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1072324229.662.18.camel>