Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys As a precaution, add sys/param.h explicitly to some head...



details:   https://anonhg.NetBSD.org/src/rev/c12c86fc7ad3
branches:  trunk
changeset: 770335:c12c86fc7ad3
user:      dholland <dholland%NetBSD.org@localhost>
date:      Wed Oct 12 23:04:22 2011 +0000

description:
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.)

diffstat:

 sys/compat/netbsd32/netbsd32.h |  3 ++-
 sys/sys/mount.h                |  3 ++-
 sys/sys/sysctl.h               |  3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diffs (51 lines):

diff -r 37433a1a5f9a -r c12c86fc7ad3 sys/compat/netbsd32/netbsd32.h
--- a/sys/compat/netbsd32/netbsd32.h    Wed Oct 12 23:03:36 2011 +0000
+++ b/sys/compat/netbsd32/netbsd32.h    Wed Oct 12 23:04:22 2011 +0000
@@ -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>
diff -r 37433a1a5f9a -r c12c86fc7ad3 sys/sys/mount.h
--- a/sys/sys/mount.h   Wed Oct 12 23:03:36 2011 +0000
+++ b/sys/sys/mount.h   Wed Oct 12 23:04:22 2011 +0000
@@ -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>
diff -r 37433a1a5f9a -r c12c86fc7ad3 sys/sys/sysctl.h
--- a/sys/sys/sysctl.h  Wed Oct 12 23:03:36 2011 +0000
+++ b/sys/sys/sysctl.h  Wed Oct 12 23:04:22 2011 +0000
@@ -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>



Home | Main Index | Thread Index | Old Index