Subject: COMPAT_LINUX compile fix
To: None <port-amd64@netbsd.org>
From: Gary Duzan <gary@duzan.org>
List: port-amd64
Date: 08/14/2005 21:17:33
   I had to make the attached changes to get a kernel to compile with
COMPAT_LINUX enabled. The commons change prevents a duplicate symbol
on link, and the machdep change pulls in WCOREDUMP and friends.

					Gary Duzan



Index: sys/compat/linux/arch/amd64/linux_commons.c
===================================================================
RCS file: /usr2/netbsd-cvs/src/sys/compat/linux/arch/amd64/linux_commons.c,v
retrieving revision 1.1
diff -u -r1.1 linux_commons.c
--- sys/compat/linux/arch/amd64/linux_commons.c	3 May 2005 16:26:30 -0000	1.1
+++ sys/compat/linux/arch/amd64/linux_commons.c	14 Aug 2005 14:50:42 -0000
@@ -34,4 +34,6 @@
 #include "../../common/linux_misc_notalpha.c"
 #include "../../common/linux_sig_notalpha.c"
 #include "../../common/linux_sigaction.c"
+#if 0
 #include "../../common/linux_uselib.c"
+#endif
Index: sys/compat/linux/arch/amd64/linux_machdep.c
===================================================================
RCS file: /usr2/netbsd-cvs/src/sys/compat/linux/arch/amd64/linux_machdep.c,v
retrieving revision 1.9
diff -u -r1.9 linux_machdep.c
--- sys/compat/linux/arch/amd64/linux_machdep.c	24 Jun 2005 22:57:05 -0000	1.9
+++ sys/compat/linux/arch/amd64/linux_machdep.c	14 Aug 2005 14:07:34 -0000
@@ -44,6 +44,7 @@
 #include <sys/ptrace.h> /* for process_read_fpregs() */
 #include <sys/user.h>
 #include <sys/ucontext.h>
+#include <sys/wait.h>
 
 #include <machine/reg.h>
 #include <machine/pcb.h>