Subject: kern/31379: kernel compile broken with COMPAT_43 and COMPAT_NETBSD32
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <mrt@notwork.org>
List: netbsd-bugs
Date: 09/23/2005 18:08:00
>Number:         31379
>Category:       kern
>Synopsis:       kernel compile broken with COMPAT_43 and COMPAT_NETBSD32
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 23 18:08:00 +0000 2005
>Originator:     mrt@notwork.org
>Release:        NetBSD 3.99.9
>Organization:
>Environment:
System: NetBSD fons-adae 3.99.9 NetBSD 3.99.9 (WILLIAM) #71: Sat Sep 24 01:05:44 JST 2005 mrt@fons-adae:/sys/arch/amd64/compile/WILLIAM amd64
Architecture: x86_64
Machine: amd64
>Description:
After NFS exports list patch committed, kernel compile broken with COMPAT_43
and COMPAT_NETBSD32 while compiling netbsd32_compat43.c
>How-To-Repeat:
Compile kernel with COMPAT_43 and COMPAT_NETBSD32 in your config.
>Fix:
Apply following.  sys/socket.h is needed for struct omsghdr and was 
included via sys/mount.h, previously.

Index: netbsd32_compat_43.c
===================================================================
RCS file: /home/mrt/src/netbsdcvs/src/sys/compat/netbsd32/netbsd32_compat_43.c,v
retrieving revision 1.31
diff -u -r1.31 netbsd32_compat_43.c
--- netbsd32_compat_43.c	13 Sep 2005 03:23:09 -0000	1.31
+++ netbsd32_compat_43.c	23 Sep 2005 16:05:15 -0000
@@ -43,6 +43,7 @@
 #include <sys/proc.h>
 #include <sys/stat.h>
 #include <sys/sa.h>
+#include <sys/socket.h>
 #include <sys/syscallargs.h>
 #include <sys/time.h>
 #include <sys/ucred.h>