summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-10-05 01:11:48 +0000
committerbde <bde@FreeBSD.org>1995-10-05 01:11:48 +0000
commitf12a489cee5a54cb6cf0a460f3425530d456b60d (patch)
tree11f540136e791cedb02e57dc9f63042af3f0b140 /sys/vm/vm.h
parent31218d95915f31f0ee4cad2d41a64c16f9a8d8d9 (diff)
downloadFreeBSD-src-f12a489cee5a54cb6cf0a460f3425530d456b60d.zip
FreeBSD-src-f12a489cee5a54cb6cf0a460f3425530d456b60d.tar.gz
Fix pollution of application namespace by declarations of kernel
functions. The application header <sys/user.h> includes <vm/vm.h> which includes <vm/lock.h>... vm.h: Don't include <machine/cpufunc.h>. It is already included by <sys/systm.h> in the kernel and isn't designed to be included by applications (the 2.1 version causes a syntax error in C++ and the current version has initializers that are invalid in strict C++). lock.h: Only declare kernel functions if KERNEL is defined.
Diffstat (limited to 'sys/vm/vm.h')
-rw-r--r--sys/vm/vm.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/vm.h b/sys/vm/vm.h
index 9b26841..5e90be6 100644
--- a/sys/vm/vm.h
+++ b/sys/vm/vm.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)vm.h 8.2 (Berkeley) 12/13/93
- * $Id: vm.h,v 1.4 1995/01/09 16:05:37 davidg Exp $
+ * $Id: vm.h,v 1.5 1995/07/13 08:48:18 davidg Exp $
*/
#ifndef VM_H
@@ -56,7 +56,6 @@ typedef struct vm_page *vm_page_t;
#include <sys/vmmeter.h>
#include <sys/queue.h>
-#include <machine/cpufunc.h>
#include <vm/vm_param.h>
#include <vm/lock.h>
#include <vm/vm_prot.h>
OpenPOWER on IntegriCloud