projects
/
ppp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0f6dd4f
)
use asm/byteorder.h, not endian.h
author
Paul Mackerras
<paulus@samba.org>
Thu, 26 Sep 1996 06:25:06 +0000
(06:25 +0000)
committer
Paul Mackerras
<paulus@samba.org>
Thu, 26 Sep 1996 06:25:06 +0000
(06:25 +0000)
linux/bsd_comp.c
patch
|
blob
|
history
diff --git
a/linux/bsd_comp.c
b/linux/bsd_comp.c
index d622bff2641e0b18e2a6ad0842b4c145af606bf2..a52c32357d510260e1a37edfe0c40180492c2f92 100644
(file)
--- a/
linux/bsd_comp.c
+++ b/
linux/bsd_comp.c
@@
-39,10
+39,11
@@
/*
* This version is for use with contiguous buffers on Linux-derived systems.
*
/*
* This version is for use with contiguous buffers on Linux-derived systems.
*
- * ==FILEVERSION
5
==
+ * ==FILEVERSION
960924
==
*
* NOTE TO MAINTAINERS:
*
* NOTE TO MAINTAINERS:
- * If you modify this file at all, increment the number above.
+ * If you modify this file at all, please set the number above to the
+ * date of the modification as YYMMDD (year month day).
* bsd_comp.c is shipped with a PPP distribution as well as with
* the kernel; if everyone increases the FILEVERSION number above,
* then scripts can do the right thing when deciding whether to
* bsd_comp.c is shipped with a PPP distribution as well as with
* the kernel; if everyone increases the FILEVERSION number above,
* then scripts can do the right thing when deciding whether to
@@
-58,7
+59,6
@@
#include <linux/module.h>
#include <linux/module.h>
-#include <endian.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/types.h>
@@
-77,6
+77,7
@@
#include <asm/system.h>
#include <asm/bitops.h>
#include <asm/segment.h>
#include <asm/system.h>
#include <asm/bitops.h>
#include <asm/segment.h>
+#include <asm/byteorder.h>
#include <linux/if.h>
#include <linux/if.h>
@@
-141,14
+142,16
@@
struct bsd_dict {
union { /* hash value */
unsigned long fcode;
struct {
union { /* hash value */
unsigned long fcode;
struct {
-#if
ndef 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;
unsigned short prefix; /* preceding code */
unsigned char suffix; /* last character of new code */
unsigned char pad;
-#el
se
/* Big endian order */
+#el
if defined(__BIG_ENDIAN)
/* Big endian order */
unsigned char pad;
unsigned char suffix; /* last character of new code */
unsigned short prefix; /* preceding code */
unsigned char pad;
unsigned char suffix; /* last character of new code */
unsigned short prefix; /* preceding code */
+#else
+#error Endianness not defined...
#endif
} hs;
} f;
#endif
} hs;
} f;