patch-2.1.9 linux/include/asm-sparc/byteorder.h
Next file: linux/include/asm-sparc/cache.h
Previous file: linux/include/asm-sparc/bitops.h
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sat Nov 9 10:29:09 1996
- Orig file:
v2.1.8/linux/include/asm-sparc/byteorder.h
- Orig date:
Sat Nov 25 04:31:21 1995
diff -u --recursive --new-file v2.1.8/linux/include/asm-sparc/byteorder.h linux/include/asm-sparc/byteorder.h
@@ -1,4 +1,4 @@
-/* $Id: byteorder.h,v 1.6 1995/11/25 02:31:20 davem Exp $ */
+/* $Id: byteorder.h,v 1.9 1996/08/30 05:21:34 davem Exp $ */
#ifndef _SPARC_BYTEORDER_H
#define _SPARC_BYTEORDER_H
@@ -7,9 +7,18 @@
#define htonl(x) x
#define htons(x) x
-#ifdef __KERNEL__
-#define __BIG_ENDIAN
+/* Some programs depend upon these being around. */
+#define __constant_ntohl(x) x
+#define __constant_ntohs(x) x
+#define __constant_htonl(x) x
+#define __constant_htons(x) x
+
+#ifndef __BIG_ENDIAN
+#define __BIG_ENDIAN 4321
#endif
+
+#ifndef __BIG_ENDIAN_BITFIELD
#define __BIG_ENDIAN_BITFIELD
+#endif
#endif /* !(_SPARC_BYTEORDER_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov