diff options
author | peter <peter@FreeBSD.org> | 1999-12-29 05:07:58 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-12-29 05:07:58 +0000 |
commit | d53e4c1d809338e9b317d95bdded2f7f7a986556 (patch) | |
tree | 916004bdaa3cf47d2a92effe8c981e7d1ff5ccec /usr.sbin | |
parent | 15b9bcb121e1f3735a2c98a11afdb52a03301d7e (diff) | |
download | FreeBSD-src-d53e4c1d809338e9b317d95bdded2f7f7a986556.zip FreeBSD-src-d53e4c1d809338e9b317d95bdded2f7f7a986556.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 'usr.sbin')
-rw-r--r-- | usr.sbin/pcvt/set2061/ICD2061Aalt.c | 4 | ||||
-rw-r--r-- | usr.sbin/pstat/pstat.c | 4 | ||||
-rw-r--r-- | usr.sbin/ypbind/yp_ping.c | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/pcvt/set2061/ICD2061Aalt.c b/usr.sbin/pcvt/set2061/ICD2061Aalt.c index a74ec4e..c65ebc4 100644 --- a/usr.sbin/pcvt/set2061/ICD2061Aalt.c +++ b/usr.sbin/pcvt/set2061/ICD2061Aalt.c @@ -1,10 +1,12 @@ /* * This code is derived from code available from the STB bulletin board + * + * $FreeBSD$ */ /* $XFree86: mit/server/ddx/x386/common_hw/ICD2061Aalt.c,v 2.6 1994/04/15 05:10:30 dawes Exp $ */ -#ifndef KERNEL +#ifndef _KERNEL #include "compiler.h" #else #define GCCUSESGAS diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index 37b074e..ed5f007 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -49,7 +49,7 @@ static const char rcsid[] = #include <sys/time.h> #include <sys/vnode.h> #include <sys/ucred.h> -#define KERNEL +#define _KERNEL #include <sys/file.h> #include <ufs/ufs/quota.h> #include <ufs/ufs/inode.h> @@ -57,7 +57,7 @@ static const char rcsid[] = #include <sys/uio.h> #include <sys/namei.h> #include <miscfs/union/union.h> -#undef KERNEL +#undef _KERNEL #include <sys/stat.h> #include <nfs/rpcv2.h> #include <nfs/nfsproto.h> diff --git a/usr.sbin/ypbind/yp_ping.c b/usr.sbin/ypbind/yp_ping.c index aaf71d6..a88d8ff 100644 --- a/usr.sbin/ypbind/yp_ping.c +++ b/usr.sbin/ypbind/yp_ping.c @@ -97,7 +97,7 @@ static const char rcsid[] = #include "yp_ping.h" #ifndef timeradd -#ifndef KERNEL /* use timevaladd/timevalsub in kernel */ +#ifndef _KERNEL /* use timevaladd/timevalsub in kernel */ /* NetBSD/OpenBSD compatable interfaces */ #define timeradd(tvp, uvp, vvp) \ do { \ |