patch-2.0.8 linux/drivers/net/bsd_comp.c
Next file: linux/drivers/net/new_tunnel.c
Previous file: linux/drivers/net/3c59x.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Wed Jul 17 07:17:29 1996
- Orig file:
v2.0.7/linux/drivers/net/bsd_comp.c
- Orig date:
Fri Apr 12 15:51:55 1996
diff -u --recursive --new-file v2.0.7/linux/drivers/net/bsd_comp.c linux/drivers/net/bsd_comp.c
@@ -58,7 +58,6 @@
#include <linux/module.h>
-#include <endian.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/types.h>
@@ -77,6 +76,7 @@
#include <asm/system.h>
#include <asm/bitops.h>
#include <asm/segment.h>
+#include <asm/byteorder.h>
#include <linux/if.h>
@@ -141,11 +141,11 @@
union { /* hash value */
unsigned long fcode;
struct {
-#ifndef BIG_ENDIAN_BITFIELD /* Little endian order */
+#if defined(__LITTLE_ENDIAN) /* Little endian order */
unsigned short prefix; /* preceding code */
unsigned char suffix; /* last character of new code */
unsigned char pad;
-#else /* Big endian order */
+#elif defined(__BIG_ENDIAN) /* Big endian order */
unsigned char pad;
unsigned char suffix; /* last character of new code */
unsigned short prefix; /* preceding code */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov