summaryrefslogtreecommitdiffstats
path: root/sys/net/if_var.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-12-29 04:46:21 +0000
committerpeter <peter@FreeBSD.org>1999-12-29 04:46:21 +0000
commit15b9bcb121e1f3735a2c98a11afdb52a03301d7e (patch)
treee999c95eb5db56737efc17feeb385a77941021bb /sys/net/if_var.h
parent9ed7cb48bf4a00a23e7489706b0effe1c516cb5b (diff)
downloadFreeBSD-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_var.h')
-rw-r--r--sys/net/if_var.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 8d497d4..80de848 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -210,7 +210,7 @@ typedef void if_init_f_t __P((void *));
} \
}
-#ifdef KERNEL
+#ifdef _KERNEL
#define IF_ENQ_DROP(ifq, m) if_enq_drop(ifq, m)
#if defined(__GNUC__) && defined(MT_HEADER)
@@ -245,7 +245,7 @@ int if_enq_drop __P((struct ifqueue *, struct mbuf *));
#define IF_MINMTU 72
#define IF_MAXMTU 65535
-#endif /* KERNEL */
+#endif /* _KERNEL */
/*
* The ifaddr structure contains information about one address
@@ -306,7 +306,7 @@ struct ifmultiaddr {
void *ifma_protospec; /* protocol-specific state, if any */
};
-#ifdef KERNEL
+#ifdef _KERNEL
#define IFAFREE(ifa) \
do { \
if ((ifa)->ifa_refcnt <= 0) \
@@ -364,7 +364,7 @@ struct ifmultiaddr *ifmaof_ifpforaddr __P((struct sockaddr *,
int if_simloop __P((struct ifnet *ifp, struct mbuf *m,
struct sockaddr *dst, int hlen));
-#endif /* KERNEL */
+#endif /* _KERNEL */
#endif /* !_NET_IF_VAR_H_ */
OpenPOWER on IntegriCloud