[Pkg-mpd-commits] [pkg-mpd] 04/08: New endian_test.patch to fix build tests on ia64 and mipsel
Florian Schlichting
fsfs at moszumanska.debian.org
Wed Nov 20 21:59:25 UTC 2013
This is an automated email from the git hooks/post-receive script.
fsfs pushed a commit to branch master
in repository pkg-mpd.
commit e0b66b13725e5a8aa9e6bf48409fa5e8fb628a93
Author: Florian Schlichting <fsfs at debian.org>
Date: Thu Nov 14 22:16:51 2013 +0100
New endian_test.patch to fix build tests on ia64 and mipsel
---
debian/patches/endian_test.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 19 insertions(+)
diff --git a/debian/patches/endian_test.patch b/debian/patches/endian_test.patch
new file mode 100644
index 0000000..6f24f10
--- /dev/null
+++ b/debian/patches/endian_test.patch
@@ -0,0 +1,18 @@
+Description: fix build tests on ia64 and mipsel
+ by testing for endianness in a more general / portable way
+ cf. https://wiki.debian.org/ArchitectureSpecificsMemo
+Author: Florian Schlichting <fsfs at debian.org>
+
+--- a/src/system/ByteOrder.hxx
++++ b/src/system/ByteOrder.hxx
+@@ -31,8 +31,9 @@
+ #define BYTE_ORDER_HXX
+
+ #include <stdint.h>
++#include <endian.h>
+
+-#if defined(__i386__) || defined(__x86_64__) || defined(__ARMEL__)
++#if __BYTE_ORDER == __LITTLE_ENDIAN
+ #define IS_LITTLE_ENDIAN true
+ #define IS_BIG_ENDIAN false
+ #else
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5841755
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+endian_test.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/pkg-mpd.git
More information about the Pkg-mpd-commits
mailing list