Subject: Re: i386->vax build fails
To: None <current-users@netbsd.org, port-vax@netbsd.org>
From: Aaron J. Grier <agrier@poofygoof.com>
List: current-users
Date: 07/04/2006 09:00:08
--MW5yreqqjyrRcusr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

it would help if I attached the (vax-specific) patch... (:

-- 
  Aaron J. Grier | "Not your ordinary poofy goof." | agrier@poofygoof.com
              "silly brewer, saaz are for pils!"  --  virt

--MW5yreqqjyrRcusr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="diff.out"

Index: sys/lib/libkern/Makefile
===================================================================
RCS file: /cvsroot/src/sys/lib/libkern/Makefile,v
retrieving revision 1.80
diff -u -r1.80 Makefile
--- sys/lib/libkern/Makefile	27 Apr 2006 20:43:09 -0000	1.80
+++ sys/lib/libkern/Makefile	4 Jul 2006 15:31:11 -0000
@@ -44,7 +44,13 @@
 
 # Other stuff
 SRCS+=	__cmsg_alignbytes.c inet_addr.c intoa.c md4c.c md5c.c sha1.c pmatch.c
-SRCS+=	_que.c arc4random.c bcd.c mcount.c
+SRCS+=	arc4random.c bcd.c mcount.c
+
+# the following ports are using macros and/or inlined queue
+# operations, so don't need _que.c
+.if (${MACHINE_ARCH} != "vax")
+SRCS+=	_que.c
+.endif
 
 SRCS+=	strstr.c strlcpy.c strlcat.c
 
Index: sys/sys/systm.h
===================================================================
RCS file: /cvsroot/src/sys/sys/systm.h,v
retrieving revision 1.187
diff -u -r1.187 systm.h
--- sys/sys/systm.h	7 Jun 2006 22:34:18 -0000	1.187
+++ sys/sys/systm.h	4 Jul 2006 15:31:15 -0000
@@ -74,6 +74,7 @@
 #endif
 
 #include <machine/endian.h>
+#include <machine/macros.h>
 
 #ifdef _KERNEL
 #include <sys/types.h>

--MW5yreqqjyrRcusr--