0004-include-misc.h-fix-uClibc-build.patch 787 B

12345678910111213141516171819202122232425262728293031
  1. From 2e8fca00f5bdb02f2f59aaa428d1e9d808ab0e86 Mon Sep 17 00:00:00 2001
  2. From: Bernd Kuhls <bernd.kuhls@t-online.de>
  3. Date: Sat, 16 Jun 2018 19:20:16 +0200
  4. Subject: [PATCH] include/misc.h: fix uClibc build
  5. A similar fix was used for Dovecot:
  6. https://www.dovecot.org/list/dovecot/2017-November/110019.html
  7. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  8. ---
  9. include/misc.h | 4 ++++
  10. 1 file changed, 4 insertions(+)
  11. diff --git a/include/misc.h b/include/misc.h
  12. index 14920c3c3..390e52b60 100644
  13. --- a/include/misc.h
  14. +++ b/include/misc.h
  15. @@ -185,6 +185,10 @@ typedef struct _xReq *xReqPtr;
  16. #endif
  17. #endif
  18. +#undef bswap_16
  19. +#undef bswap_32
  20. +#undef bswap_64
  21. +
  22. /**
  23. * Calculate the number of bytes needed to hold bits.
  24. * @param bits The minimum number of bits needed.
  25. --
  26. 2.17.1