Module Name:    src
Committed By:   dholland
Date:           Wed Oct 12 23:04:22 UTC 2011

Modified Files:
        src/sys/compat/netbsd32: netbsd32.h
        src/sys/sys: mount.h sysctl.h

Log Message:
As a precaution, add sys/param.h explicitly to some headers that will
no longer get it via sys/ucred.h and don't already include it
explicitly. These should in turn be removed when it can be confirmed
that it's safe to do so. (Because sys/param.h is full of things that
are often tested with #if, it's not in general safe to remove it
without checking, as such tests fail silently if the symbol goes
missing.)


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sys/compat/netbsd32/netbsd32.h
cvs rdiff -u -r1.200 -r1.201 src/sys/sys/mount.h
cvs rdiff -u -r1.195 -r1.196 src/sys/sys/sysctl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/netbsd32/netbsd32.h
diff -u src/sys/compat/netbsd32/netbsd32.h:1.87 src/sys/compat/netbsd32/netbsd32.h:1.88
--- src/sys/compat/netbsd32/netbsd32.h:1.87	Thu Jun 30 20:09:39 2011
+++ src/sys/compat/netbsd32/netbsd32.h	Wed Oct 12 23:04:22 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: netbsd32.h,v 1.87 2011/06/30 20:09:39 wiz Exp $	*/
+/*	$NetBSD: netbsd32.h,v 1.88 2011/10/12 23:04:22 dholland Exp $	*/
 
 /*
  * Copyright (c) 1998, 2001, 2008 Matthew R. Green
@@ -36,6 +36,7 @@
  * NetBSD 32-bit compatibility module.
  */
 
+#include <sys/param.h> /* precautionary upon removal from ucred.h */
 #include <sys/systm.h>
 #include <sys/mount.h>
 #include <sys/stat.h>

Index: src/sys/sys/mount.h
diff -u src/sys/sys/mount.h:1.200 src/sys/sys/mount.h:1.201
--- src/sys/sys/mount.h:1.200	Mon Jun 27 11:52:24 2011
+++ src/sys/sys/mount.h	Wed Oct 12 23:04:22 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: mount.h,v 1.200 2011/06/27 11:52:24 uch Exp $	*/
+/*	$NetBSD: mount.h,v 1.201 2011/10/12 23:04:22 dholland Exp $	*/
 
 /*
  * Copyright (c) 1989, 1991, 1993
@@ -42,6 +42,7 @@
 #endif
 
 #ifndef _STANDALONE
+#include <sys/param.h> /* precautionary upon removal from ucred.h */
 #include <sys/time.h>
 #include <sys/uio.h>
 #include <sys/ucred.h>

Index: src/sys/sys/sysctl.h
diff -u src/sys/sys/sysctl.h:1.195 src/sys/sys/sysctl.h:1.196
--- src/sys/sys/sysctl.h:1.195	Tue Apr 26 21:27:44 2011
+++ src/sys/sys/sysctl.h	Wed Oct 12 23:04:22 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: sysctl.h,v 1.195 2011/04/26 21:27:44 joerg Exp $	*/
+/*	$NetBSD: sysctl.h,v 1.196 2011/10/12 23:04:22 dholland Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -40,6 +40,7 @@
 /*
  * These are for the eproc structure defined below.
  */
+#include <sys/param.h> /* precautionary upon removal from ucred.h */
 #include <sys/time.h>
 #include <sys/ucred.h>
 #include <sys/ucontext.h>

Reply via email to