Module Name:    src
Committed By:   pooka
Date:           Mon Jan 18 23:27:49 UTC 2016

Modified Files:
        src/sys/sys: sysctl.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.218 -r1.219 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/sys/sysctl.h
diff -u src/sys/sys/sysctl.h:1.218 src/sys/sys/sysctl.h:1.219
--- src/sys/sys/sysctl.h:1.218	Mon Jan 18 16:46:08 2016
+++ src/sys/sys/sysctl.h	Mon Jan 18 23:27:49 2016
@@ -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 @@ extern struct ctldebug debug15, debug16,
 	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;

Reply via email to