summaryrefslogtreecommitdiffstats
path: root/main/mdadm/uclibc-bswap.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-09-01 14:56:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-09-01 14:57:05 +0000
commitcec8ddec2e8e239027f8dd8d381cc9cda8efd167 (patch)
treeb0d85f7959c534dfa2dc662899295f56f882a303 /main/mdadm/uclibc-bswap.patch
parent9db6b342c21bd2e24f529ef07ffd4d4c109a87ed (diff)
downloadaports-cec8ddec2e8e239027f8dd8d381cc9cda8efd167.tar.bz2
aports-cec8ddec2e8e239027f8dd8d381cc9cda8efd167.tar.xz
main/mdadm: upgrade to 3.1.3
Diffstat (limited to 'main/mdadm/uclibc-bswap.patch')
-rw-r--r--main/mdadm/uclibc-bswap.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/mdadm/uclibc-bswap.patch b/main/mdadm/uclibc-bswap.patch
new file mode 100644
index 000000000..b1d0428dc
--- /dev/null
+++ b/main/mdadm/uclibc-bswap.patch
@@ -0,0 +1,18 @@
+--- ./mdadm.h.orig
++++ ./mdadm.h
+@@ -104,12 +104,15 @@
+ * and there is no standard conversion function so... */
+ /* And dietlibc doesn't think byteswap is ok, so.. */
+ /* #include <byteswap.h> */
++#undef bswap_16
+ #define bswap_16(x) (((x) & 0x00ffU) << 8 | \
+ ((x) & 0xff00U) >> 8)
++#undef bswap_32
+ #define bswap_32(x) (((x) & 0x000000ffU) << 24 | \
+ ((x) & 0xff000000U) >> 24 | \
+ ((x) & 0x0000ff00U) << 8 | \
+ ((x) & 0x00ff0000U) >> 8)
++#undef bswap_64
+ #define bswap_64(x) (((x) & 0x00000000000000ffULL) << 56 | \
+ ((x) & 0xff00000000000000ULL) >> 56 | \
+ ((x) & 0x000000000000ff00ULL) << 40 | \