From 15b9bcb121e1f3735a2c98a11afdb52a03301d7e Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 29 Dec 1999 04:46:21 +0000 Subject: Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. --- sys/net/if.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/net/if.h') diff --git a/sys/net/if.h b/sys/net/if.h index 350e6d8..0e0ff81 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -41,7 +41,7 @@ * does not depend on on most other systems. This * helps userland compatability. (struct timeval ifi_lastchange) */ -#ifndef KERNEL +#ifndef _KERNEL #include #endif @@ -241,14 +241,14 @@ struct if_laddrreq { struct sockaddr_storage dstaddr; /* out */ }; -#ifdef KERNEL +#ifdef _KERNEL #ifdef MALLOC_DECLARE MALLOC_DECLARE(M_IFADDR); MALLOC_DECLARE(M_IFMADDR); #endif #endif -#ifndef KERNEL +#ifndef _KERNEL struct if_nameindex { u_int if_index; /* 1, 2, ... */ char *if_name; /* null terminated name: "le0", ... */ @@ -262,7 +262,7 @@ void if_freenameindex __P((struct if_nameindex *)); __END_DECLS #endif -#ifdef KERNEL +#ifdef _KERNEL struct proc; int prison_if __P((struct proc *p, struct sockaddr *sa)); -- cgit v1.1