summaryrefslogtreecommitdiffstats
path: root/package/dovecot/0001-byteorder.h-fix-uclibc-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/dovecot/0001-byteorder.h-fix-uclibc-build.patch')
-rw-r--r--package/dovecot/0001-byteorder.h-fix-uclibc-build.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/dovecot/0001-byteorder.h-fix-uclibc-build.patch b/package/dovecot/0001-byteorder.h-fix-uclibc-build.patch
new file mode 100644
index 0000000000..b6d3ed3ec0
--- /dev/null
+++ b/package/dovecot/0001-byteorder.h-fix-uclibc-build.patch
@@ -0,0 +1,32 @@
+From 902917880ca29f1007750a70cf46e7246b2d0a2a Mon Sep 17 00:00:00 2001
+From: Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
+Date: Tue, 14 Nov 2017 06:01:21 +0100
+Subject: [PATCH] byteorder.h: fix uclibc build
+
+Patch suggested on upstream mailinglist:
+https://www.dovecot.org/pipermail/dovecot/2017-November/110019.html
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+ src/lib/byteorder.h | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/lib/byteorder.h b/src/lib/byteorder.h
+index 2f5dc7c17..4ffe8da21 100644
+--- a/src/lib/byteorder.h
++++ b/src/lib/byteorder.h
+@@ -23,6 +23,11 @@
+ #ifndef BYTEORDER_H
+ #define BYTEORDER_H
+
++#undef bswap_8
++#undef bswap_16
++#undef bswap_32
++#undef bswap_64
++
+ /*
+ * These prototypes exist to catch bugs in the code generating macros below.
+ */
+--
+2.11.0
+
OpenPOWER on IntegriCloud