summaryrefslogtreecommitdiffstats
path: root/package/dovecot/0001-byteorder.h-fix-uclibc-build.patch
blob: b6d3ed3ec08c4835f9e5f29c17c94822a9be39e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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