]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add endian.h defs
authorTed Lemon <source@isc.org>
Wed, 22 May 1996 11:31:47 +0000 (11:31 +0000)
committerTed Lemon <source@isc.org>
Wed, 22 May 1996 11:31:47 +0000 (11:31 +0000)
cf/sunos4.h
includes/cf/sunos4.h

index a0245b76504653629951fde591f82bed80af8d82..1e8b849dc711a5ebccf6861f33f659172207ed80 100644 (file)
 #define u_int16_t      unsigned short 
 #define u_int32_t      unsigned long 
 
+/* No endian.h either. */
+/*
+ * Definitions for byte order, according to byte significance from low
+ * address to high.
+ */
+#define LITTLE_ENDIAN   1234    /* LSB first: i386, vax */
+#define BIG_ENDIAN      4321    /* MSB first: 68000, ibm, net */
+#define PDP_ENDIAN      3412    /* LSB first in word, MSW first in long */
+
+#define BYTE_ORDER      BIG_ENDIAN
+
 /* The jmp_buf type is an array on SunOS, so we can't dereference it
    and must declare it differently. */
 #define jbp_decl(x)    jmp_buf x
index a0245b76504653629951fde591f82bed80af8d82..1e8b849dc711a5ebccf6861f33f659172207ed80 100644 (file)
 #define u_int16_t      unsigned short 
 #define u_int32_t      unsigned long 
 
+/* No endian.h either. */
+/*
+ * Definitions for byte order, according to byte significance from low
+ * address to high.
+ */
+#define LITTLE_ENDIAN   1234    /* LSB first: i386, vax */
+#define BIG_ENDIAN      4321    /* MSB first: 68000, ibm, net */
+#define PDP_ENDIAN      3412    /* LSB first in word, MSW first in long */
+
+#define BYTE_ORDER      BIG_ENDIAN
+
 /* The jmp_buf type is an array on SunOS, so we can't dereference it
    and must declare it differently. */
 #define jbp_decl(x)    jmp_buf x