Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Include <sys/kernel.h> only if it's needed.



details:   https://anonhg.NetBSD.org/src/rev/c7081c70ff50
branches:  trunk
changeset: 343014:c7081c70ff50
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Jan 18 23:27:49 2016 +0000

description:
Include <sys/kernel.h> only if it's needed.
(fix build failure)

diffstat:

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

diffs (27 lines):

diff -r 061f92eb60cb -r c7081c70ff50 sys/sys/sysctl.h
--- a/sys/sys/sysctl.h  Mon Jan 18 23:27:20 2016 +0000
+++ b/sys/sys/sysctl.h  Mon Jan 18 23:27:49 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.h,v 1.218 2016/01/18 16:46:08 pooka Exp $       */
+/*     $NetBSD: sysctl.h,v 1.219 2016/01/18 23:27:49 pooka Exp $       */
 
 /*
  * Copyright (c) 1989, 1993
@@ -50,8 +50,6 @@
 #include <sys/ucontext.h>
 #include <sys/mallocvar.h>
 #include <uvm/uvm_extern.h>
-
-#include <sys/kernel.h>
 #endif
 
 
@@ -1150,6 +1148,8 @@
        oname, l, node
 
 #ifdef RUMP_USE_CTOR
+#include <sys/kernel.h>
+
 struct sysctl_setup_chain {
        void (*ssc_func)(struct sysctllog **);
        LIST_ENTRY(sysctl_setup_chain) ssc_entries;



Home | Main Index | Thread Index | Old Index