telephony/net/freeswitch/patches/libs-libzrtp-include-zrtp_config.patch
Mazi Lo 24f45c9b31 FreeSWITCH:
1. Update to FS git 6eb59c711989774fb797d1c447e3d63aac84826b.
  2. Disable mod_perl due to recent changes in perl package.
  3. Disable mod_verto (required mod_perl).
  4. Remove numbering scheme from patches.

Signed-off-by: Mazi Lo <openwrt.mazilo@recursor.net>
2015-04-07 11:09:48 -04:00

20 lines
782 B
Diff

--- a/libs/libzrtp/include/zrtp_config.h
+++ b/libs/libzrtp/include/zrtp_config.h
@@ -68,8 +68,16 @@
* If the byte order is not specified manually in zrtp_config_user.h - try to detect it automatically
*/
#if !defined(ZRTP_BYTE_ORDER)
+#if defined(linux) || defined(__linux)
-#if defined(_i386_) || defined(i_386_) || defined(_X86_) || defined(x86) || defined(__i386__) || \
+#include <endian.h>
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+#define ZRTP_BYTE_ORDER ZBO_LITTLE_ENDIAN
+#elif __BYTE_ORDER == __BIG_ENDIAN
+#define ZRTP_BYTE_ORDER ZBO_BIG_ENDIAN
+#endif
+
+#elif defined(_i386_) || defined(i_386_) || defined(_X86_) || defined(x86) || defined(__i386__) || \
defined(__i386) || defined(_M_IX86) || defined(__I86__)
/*
* Generic i386 processor family, little-endian