]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Conditionalize definition of byte order constants, in case BIND headers
authorTed Lemon <source@isc.org>
Thu, 1 Jul 1999 19:25:01 +0000 (19:25 +0000)
committerTed Lemon <source@isc.org>
Thu, 1 Jul 1999 19:25:01 +0000 (19:25 +0000)
  define them.

includes/cf/sunos5-5.h

index 94d0ee33385361772ca4d13e05a070deaf6042eb..ec01e59792575c34638d5b0450cf0e71386fd994 100644 (file)
@@ -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