]> git.pld-linux.org Git - packages/linux-libc-headers.git/blame - linux-libc-headers-endian.patch
- no if_addrlabel.h
[packages/linux-libc-headers.git] / linux-libc-headers-endian.patch
CommitLineData
963876a8
JB
1--- linux-2.6.20/include/linux/aio_abi.h.orig 2007-02-04 19:44:54.000000000 +0100
2+++ linux-2.6.20/include/linux/aio_abi.h 2007-04-02 21:27:18.150605175 +0200
3@@ -27,7 +27,11 @@
4 #ifndef __LINUX__AIO_ABI_H
5 #define __LINUX__AIO_ABI_H
7464f6b0 6
963876a8
JB
7+#ifdef __KERNEL__
8 #include <asm/byteorder.h>
9+#else
7464f6b0 10+#include <endian.h>
963876a8 11+#endif
7464f6b0 12
963876a8 13 typedef unsigned long aio_context_t;
7464f6b0 14
963876a8 15@@ -53,6 +57,7 @@
7464f6b0
JB
16 __s64 res2; /* secondary result */
17 };
18
963876a8
JB
19+#ifdef __KERNEL__
20 #if defined(__LITTLE_ENDIAN)
7464f6b0 21 #define PADDED(x,y) x, y
963876a8
JB
22 #elif defined(__BIG_ENDIAN)
23@@ -60,6 +65,15 @@
7464f6b0
JB
24 #else
25 #error edit for your odd byteorder.
7464f6b0 26 #endif
963876a8 27+#else /* __KERNEL__ */
7464f6b0 28+#if __BYTE_ORDER == __LITTLE_ENDIAN
963876a8 29+#define PADDED(x,y) x, y
7464f6b0 30+#elif __BYTE_ORDER == __BIG_ENDIAN
963876a8
JB
31+#define PADDED(x,y) y, x
32+#else
33+#error edit for your odd byteorder.
34+#endif
35+#endif /* __KERNEL__ */
7464f6b0 36
963876a8
JB
37 /*
38 * we always use a 64bit off_t when communicating
39--- linux-2.6.20/include/linux/raid/md_p.h.orig 2007-02-04 19:44:54.000000000 +0100
40+++ linux-2.6.20/include/linux/raid/md_p.h 2007-04-02 21:32:46.657325707 +0200
41@@ -15,6 +15,10 @@
42 #ifndef _MD_P_H
7464f6b0
JB
43 #define _MD_P_H
44
963876a8 45+#ifndef __KERNEL__
7464f6b0 46+#include <endian.h>
963876a8
JB
47+#endif
48+
7464f6b0
JB
49 /*
50 * RAID superblock.
963876a8
JB
51 *
52@@ -146,7 +150,7 @@
7464f6b0
JB
53 __u32 failed_disks; /* 4 Number of failed disks */
54 __u32 spare_disks; /* 5 Number of spare disks */
55 __u32 sb_csum; /* 6 checksum of the whole superblock */
56-#ifdef __BIG_ENDIAN
963876a8 57+#if (defined(__KERNEL__) && defined(__BIG_ENDIAN)) || (!defined(__KERNEL__) && (__BYTE_ORDER == __BIG_ENDIAN))
7464f6b0
JB
58 __u32 events_hi; /* 7 high-order of superblock update count */
59 __u32 events_lo; /* 8 low-order of superblock update count */
60 __u32 cp_events_hi; /* 9 high-order of checkpoint update count */
This page took 0.032005 seconds and 4 git commands to generate.