--- kernel-source-2.6.9/include/linux/byteorder/pdp_endian.h.orig-polluted 2004-10-19 01:55:35 +0400 +++ kernel-source-2.6.9/include/linux/byteorder/pdp_endian.h 2004-10-27 18:40:28 +0400 @@ -30,6 +30,8 @@ #include #include +#if defined(__KERNEL__) + #define __constant_htonl(x) ___constant_swahb32((x)) #define __constant_ntohl(x) ___constant_swahb32((x)) #define __constant_htons(x) ___constant_swab16((x)) @@ -83,6 +85,8 @@ #define __cpu_to_be16s(x) __swab16s((x)) #define __be16_to_cpus(x) __swab16s((x)) +#endif /* __KERNEL__ */ + #include #endif /* _LINUX_BYTEORDER_PDP_ENDIAN_H */ --- kernel-source-2.6.9/include/linux/byteorder/big_endian.h.orig-polluted 2004-10-19 01:55:07 +0400 +++ kernel-source-2.6.9/include/linux/byteorder/big_endian.h 2004-10-27 18:39:36 +0400 @@ -11,6 +11,8 @@ #include #include +#if defined(__KERNEL__) + #define __constant_htonl(x) ((__force __be32)(__u32)(x)) #define __constant_ntohl(x) ((__force __u32)(__be32)(x)) #define __constant_htons(x) ((__force __be16)(__u16)(x)) @@ -101,6 +103,8 @@ #define __cpu_to_be16s(x) do {} while (0) #define __be16_to_cpus(x) do {} while (0) +#endif /* __KERNEL__ */ + #include #endif /* _LINUX_BYTEORDER_BIG_ENDIAN_H */ --- kernel-source-2.6.9/include/linux/byteorder/little_endian.h.orig-polluted 2004-10-19 01:54:32 +0400 +++ kernel-source-2.6.9/include/linux/byteorder/little_endian.h 2004-10-27 18:38:12 +0400 @@ -11,6 +11,8 @@ #include #include +#if defined(__KERNEL__) + #define __constant_htonl(x) ((__force __be32)___constant_swab32((x))) #define __constant_ntohl(x) ___constant_swab32((__force __be32)(x)) #define __constant_htons(x) ((__force __be16)___constant_swab16((x))) @@ -101,6 +103,8 @@ #define __cpu_to_be16s(x) __swab16s((x)) #define __be16_to_cpus(x) __swab16s((x)) +#endif /* __KERNEL__ */ + #include #endif /* _LINUX_BYTEORDER_LITTLE_ENDIAN_H */