ALT Linux Bugzilla
– Attachment 622 Details for
Bug 5409
linux/byteorder/*_endian.h cannot be used outside kernel builds
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Proposed patch
kernel-2.6.9-polluted-endian.patch (text/plain), 2.05 KB, created by
Mikhail Zabaluev
on 2004-10-27 20:01:20 MSD
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Mikhail Zabaluev
Created:
2004-10-27 20:01:20 MSD
Size:
2.05 KB
patch
obsolete
>--- 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 <linux/byteorder/swab.h> > #include <linux/byteorder/swabb.h> > >+#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 <linux/byteorder/generic.h> > > #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 <linux/types.h> > #include <linux/byteorder/swab.h> > >+#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 <linux/byteorder/generic.h> > > #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 <linux/types.h> > #include <linux/byteorder/swab.h> > >+#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 <linux/byteorder/generic.h> > > #endif /* _LINUX_BYTEORDER_LITTLE_ENDIAN_H */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 5409
:
621
| 622