summaryrefslogtreecommitdiffstats
path: root/sys/vm/memguard.h
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2010-08-12 16:54:43 +0000
committermdf <mdf@FreeBSD.org>2010-08-12 16:54:43 +0000
commit6c415f8b84db102df1fff3b142caeb1d26dfc68d (patch)
tree5c0a81d57df71ef743d10d81750173767388bbaa /sys/vm/memguard.h
parent1974c6514bc5fb0a5fe1d6e8d8b27eb71e3ed023 (diff)
downloadFreeBSD-src-6c415f8b84db102df1fff3b142caeb1d26dfc68d.zip
FreeBSD-src-6c415f8b84db102df1fff3b142caeb1d26dfc68d.tar.gz
Fix compile. It seemed better to have memguard.c include opt_vm.h in
case future compile-time knobs were added that it wants to use. Also add include guards and forward declarations to vm/memguard.h. Approved by: zml (mentor) MFC after: 1 month
Diffstat (limited to 'sys/vm/memguard.h')
-rw-r--r--sys/vm/memguard.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/vm/memguard.h b/sys/vm/memguard.h
index 55ffec9..ba7c2f1 100644
--- a/sys/vm/memguard.h
+++ b/sys/vm/memguard.h
@@ -26,8 +26,14 @@
* $FreeBSD$
*/
+#ifndef _VM_MEMGUARD_H_
+#define _VM_MEMGUARD_H_
+
#include "opt_vm.h"
+struct malloc_type;
+struct vm_map;
+
#ifdef DEBUG_MEMGUARD
unsigned long memguard_fudge(unsigned long, unsigned long);
void memguard_init(struct vm_map *);
@@ -43,3 +49,5 @@ int is_memguard_addr(void *);
#define memguard_cmp(mtp, size) 0
#define is_memguard_addr(addr) 0
#endif
+
+#endif /* _VM_MEMGUARD_H_ */
OpenPOWER on IntegriCloud