[Pkg-voip-commits] [SCM] reSIProcate branch, master, updated. debian/1.8.11-3
Daniel Pocock
daniel at pocock.com.au
Thu Jul 18 19:49:51 UTC 2013
The following commit has been merged in the master branch:
commit e05d451109b67858d2e28049d036c29de3598327
Author: Daniel Pocock <daniel at pocock.com.au>
Date: Thu Jul 18 20:51:58 2013 +0200
Add patch fixing big endian build issues
diff --git a/debian/changelog b/debian/changelog
index 02ce3c6..5b02b03 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+resiprocate (1.8.11-3) unstable; urgency=low
+
+ * Fix for big-endian build issues
+
+ -- Daniel Pocock <daniel at pocock.com.au> Thu, 18 Jul 2013 20:51:23 +0200
+
resiprocate (1.8.11-2) unstable; urgency=low
* Disable librecon build on non-Linux architectures
diff --git a/debian/patches/0001-Fix-for-big-endian-build-issues.patch b/debian/patches/0001-Fix-for-big-endian-build-issues.patch
new file mode 100644
index 0000000..06a2631
--- /dev/null
+++ b/debian/patches/0001-Fix-for-big-endian-build-issues.patch
@@ -0,0 +1,40 @@
+From: Daniel Pocock <daniel at pocock.com.au>
+Date: Thu, 18 Jul 2013 20:50:42 +0200
+Subject: Fix for big endian build issues
+
+---
+ rutil/Data.cxx | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+diff --git a/rutil/Data.cxx b/rutil/Data.cxx
+index 753196a..14ec7e3 100644
+--- a/rutil/Data.cxx
++++ b/rutil/Data.cxx
+@@ -1967,6 +1967,19 @@ Data::rawCaseInsensitiveHash(const unsigned char* c, size_t size)
+ return ntohl((u_long)st);
+ }
+
++#if (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__))
++
++#if !defined (get16bits)
++#define get16bits(d) ((((UInt32)(((const UInt8 *)(d))[0])) << 8)\
++ +(UInt32)(((const UInt8 *)(d))[1]) )
++#endif
++
++#if !defined (get32bits)
++#define get32bits(d) ((get16bits(d) << 16) + get16bits(d+2))
++#endif
++
++#else
++
+ #undef get16bits
+ #if (defined(__GNUC__) && defined(__i386__)) || defined(__WATCOMC__) \
+ || defined(_MSC_VER) || defined (__BORLANDC__) || defined (__TURBOC__)
+@@ -1987,6 +2000,7 @@ Data::rawCaseInsensitiveHash(const unsigned char* c, size_t size)
+ #if !defined (get32bits)
+ #define get32bits(d) ((get16bits(d+2) << 16) + get16bits(d))
+ #endif
++#endif
+
+ // This is intended to be a faster case-insensitive hash function that works
+ // well when the buffer is a RFC 3261 token.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b855d6c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-for-big-endian-build-issues.patch
--
reSIProcate
More information about the Pkg-voip-commits
mailing list