summaryrefslogtreecommitdiff
path: root/includes/cf
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1999-07-01 19:25:01 +0000
committerTed Lemon <source@isc.org>1999-07-01 19:25:01 +0000
commit0b0a0945b94d8a63bdc0eb25b3752939e8d132b8 (patch)
treefb064674993fd056671fed9c392deb24a5ff6b21 /includes/cf
parent972ab2aa721449d193c241e2ba53549e21ce3fed (diff)
downloadisc-dhcp-0b0a0945b94d8a63bdc0eb25b3752939e8d132b8.tar.gz
- Conditionalize definition of byte order constants, in case BIND headers
define them.
Diffstat (limited to 'includes/cf')
-rw-r--r--includes/cf/sunos5-5.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/includes/cf/sunos5-5.h b/includes/cf/sunos5-5.h
index 94d0ee33..ec01e597 100644
--- a/includes/cf/sunos5-5.h
+++ b/includes/cf/sunos5-5.h
@@ -126,15 +126,23 @@ extern int h_errno;
/* Solaris doesn't provide an endian.h, so we have to do it. */
-#define BIG_ENDIAN 1
-#define LITTLE_ENDIAN 2
-#if defined (__i386) || defined (i386)
-# define BYTE_ORDER LITTLE_ENDIAN
-#else
-# if defined (__sparc) || defined (sparc)
-# define BYTE_ORDER BIG_ENDIAN
+#if !defined (BIG_ENDIAN)
+# define BIG_ENDIAN 1
+#endif
+
+#if !defined (BIG_ENDIAN)
+# define LITTLE_ENDIAN 2
+#endif
+
+#if !defined (BYTE_ORDER)
+# if defined (__i386) || defined (i386)
+# define BYTE_ORDER LITTLE_ENDIAN
# else
+# if defined (__sparc) || defined (sparc)
+# define BYTE_ORDER BIG_ENDIAN
+# else
@@@ ERROR @@@ Unable to determine byte order!
+# endif
# endif
#endif