diff options
author | peter <peter@FreeBSD.org> | 1999-12-29 04:46:21 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-12-29 04:46:21 +0000 |
commit | 15b9bcb121e1f3735a2c98a11afdb52a03301d7e (patch) | |
tree | e999c95eb5db56737efc17feeb385a77941021bb /sys/net/if.h | |
parent | 9ed7cb48bf4a00a23e7489706b0effe1c516cb5b (diff) | |
download | FreeBSD-src-15b9bcb121e1f3735a2c98a11afdb52a03301d7e.zip FreeBSD-src-15b9bcb121e1f3735a2c98a11afdb52a03301d7e.tar.gz |
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.
Diffstat (limited to 'sys/net/if.h')
-rw-r--r-- | sys/net/if.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ * <net/if.h> does not depend on <sys/time.h> on most other systems. This * helps userland compatability. (struct timeval ifi_lastchange) */ -#ifndef KERNEL +#ifndef _KERNEL #include <sys/time.h> #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)); |