summaryrefslogtreecommitdiff
path: root/sys/netinet/pim.h
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2006-04-27 02:19:33 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2006-04-27 02:19:33 +0000
commit883d7ebb03b57a4d220776f62e5d28d54bedff38 (patch)
treef1153f429bbcbeb553adf9f2052c4a332fd70fcd /sys/netinet/pim.h
parent23c97173b099220cf0b5da85d3b3050ef443855a (diff)
use underscore variants of _BYTE_ORDER macros which are always defined
ok deraadt millert
Diffstat (limited to 'sys/netinet/pim.h')
-rw-r--r--sys/netinet/pim.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/netinet/pim.h b/sys/netinet/pim.h
index 03c5ea76a25..df5c1dca3ec 100644
--- a/sys/netinet/pim.h
+++ b/sys/netinet/pim.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pim.h,v 1.1 2005/01/14 14:51:28 mcbride Exp $ */
+/* $OpenBSD: pim.h,v 1.2 2006/04/27 02:19:32 tedu Exp $ */
/* $NetBSD: pim.h,v 1.1 2004/09/04 23:32:29 manu Exp $ */
/*
@@ -48,11 +48,11 @@
#include <sys/types.h>
#ifndef _PIM_VT
-#ifndef BYTE_ORDER
-# error BYTE_ORDER is not defined!
+#ifndef _BYTE_ORDER
+# error _BYTE_ORDER is not defined!
#endif
-#if (BYTE_ORDER != BIG_ENDIAN) && (BYTE_ORDER != LITTLE_ENDIAN)
-# error BYTE_ORDER must be defined to either BIG_ENDIAN or LITTLE_ENDIAN
+#if (_BYTE_ORDER != _BIG_ENDIAN) && (_BYTE_ORDER != _LITTLE_ENDIAN)
+# error _BYTE_ORDER must be defined to either _BIG_ENDIAN or _LITTLE_ENDIAN
#endif
#endif /* ! _PIM_VT */
@@ -63,11 +63,11 @@ struct pim {
#ifdef _PIM_VT
uint8_t pim_vt; /* PIM version and message type */
#else /* ! _PIM_VT */
-#if BYTE_ORDER == BIG_ENDIAN
+#if _BYTE_ORDER == _BIG_ENDIAN
u_int pim_vers:4, /* PIM protocol version */
pim_type:4; /* PIM message type */
#endif
-#if BYTE_ORDER == LITTLE_ENDIAN
+#if _BYTE_ORDER == _LITTLE_ENDIAN
u_int pim_type:4, /* PIM message type */
pim_vers:4; /* PIM protocol version */
#endif