patch-1.3.54 linux/include/asm-i386/byteorder.h

Next file: linux/include/asm-i386/pgtable.h
Previous file: linux/include/asm-alpha/pgtable.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.53/linux/include/asm-i386/byteorder.h linux/include/asm-i386/byteorder.h
@@ -14,6 +14,11 @@
 #define __LITTLE_ENDIAN_BITFIELD
 #endif
 
+/* For avoiding bswap on i386 */
+#ifdef __KERNEL__
+#include <linux/config.h>
+#endif
+
 extern unsigned long int	ntohl(unsigned long int);
 extern unsigned short int	ntohs(unsigned short int);
 extern unsigned long int	htonl(unsigned long int);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this