From dc28f16d8ee251f2510631cfa4e043bbe4a82a8b Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 20 Apr 2004 12:28:19 +0000 Subject: Use -D_KERNEL instead of -DKERNEL for greater FreeBSD compliance. --- cpukit/libnetworking/vm/vm.h | 2 +- cpukit/libnetworking/vm/vm_extern.h | 4 ++-- cpukit/libnetworking/vm/vm_param.h | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'cpukit/libnetworking/vm') diff --git a/cpukit/libnetworking/vm/vm.h b/cpukit/libnetworking/vm/vm.h index 19ea10e5eb..7debe74a82 100644 --- a/cpukit/libnetworking/vm/vm.h +++ b/cpukit/libnetworking/vm/vm.h @@ -52,7 +52,7 @@ typedef struct vm_map *vm_map_t; struct vm_object; typedef struct vm_object *vm_object_t; -#ifndef KERNEL +#ifndef _KERNEL /* * This is defined in for the kernel so that non-vm kernel * sources (mainly Mach-derived ones such as ddb) don't have to include diff --git a/cpukit/libnetworking/vm/vm_extern.h b/cpukit/libnetworking/vm/vm_extern.h index 720d42dc28..50503a7f6f 100644 --- a/cpukit/libnetworking/vm/vm_extern.h +++ b/cpukit/libnetworking/vm/vm_extern.h @@ -44,7 +44,7 @@ struct vmtotal; struct mount; struct vnode; -#ifdef KERNEL +#ifdef _KERNEL #ifdef TYPEDEF_FOR_UAP int getpagesize __P((struct proc * p, void *, int *)); @@ -98,6 +98,6 @@ void vm_object_print __P((/* db_expr_t */ int, boolean_t, /* db_expr_t */ int, char *)); void vm_fault_quick __P((caddr_t v, int prot)); -#endif /* KERNEL */ +#endif /* _KERNEL */ #endif /* !_VM_EXTERN_H_ */ diff --git a/cpukit/libnetworking/vm/vm_param.h b/cpukit/libnetworking/vm/vm_param.h index f1cfca98ec..0f58fab6c6 100644 --- a/cpukit/libnetworking/vm/vm_param.h +++ b/cpukit/libnetworking/vm/vm_param.h @@ -98,7 +98,7 @@ #endif -#ifdef KERNEL +#ifdef _KERNEL extern vm_size_t page_mask; extern int page_shift; @@ -153,13 +153,13 @@ extern int page_shift; * Convert addresses to pages and vice versa. * No rounding is used. */ -#ifdef KERNEL +#ifdef _KERNEL #define num_pages(x) \ ((vm_offset_t)((((vm_offset_t)(x)) + PAGE_MASK) >> PAGE_SHIFT)) extern vm_size_t mem_size; /* size of physical memory (bytes) */ extern vm_offset_t first_addr; /* first physical page */ extern vm_offset_t last_addr; /* last physical page */ -#endif /* KERNEL */ +#endif /* _KERNEL */ #endif /* ASSEMBLER */ #endif /* _VM_PARAM_ */ -- cgit v1.2.3