diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2020-04-29 14:41:02 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2020-04-29 14:41:02 +0000 |
commit | 8ad275d2a0077a2751de9bdbbaab0e307bdc835f (patch) | |
tree | 6e8d9ba4e18dccf73b7e45aaaa65c9bd4fab3109 /net/pjsip | |
parent | 6feec0a3372f6070c1e02f72cf92ffd06b48ec0f (diff) | |
download | ports-8ad275d2a0077a2751de9bdbbaab0e307bdc835f.tar.gz ports-8ad275d2a0077a2751de9bdbbaab0e307bdc835f.zip |
Notes
Diffstat (limited to 'net/pjsip')
-rw-r--r-- | net/pjsip/files/patch-third__party_webrtc_src_webrtc_typedefs.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net/pjsip/files/patch-third__party_webrtc_src_webrtc_typedefs.h b/net/pjsip/files/patch-third__party_webrtc_src_webrtc_typedefs.h new file mode 100644 index 000000000000..03e4a7fa921f --- /dev/null +++ b/net/pjsip/files/patch-third__party_webrtc_src_webrtc_typedefs.h @@ -0,0 +1,23 @@ +--- third_party/webrtc/src/webrtc/typedefs.h.orig 2017-01-07 23:05:15 UTC ++++ third_party/webrtc/src/webrtc/typedefs.h +@@ -48,7 +48,19 @@ + #define WEBRTC_ARCH_32_BITS + #define WEBRTC_ARCH_LITTLE_ENDIAN + #else +-#error Please add support for your architecture in typedefs.h ++/* instead of failing, use typical unix defines... */ ++#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ ++#define WEBRTC_ARCH_LITTLE_ENDIAN ++#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ ++#define WEBRTC_ARCH_BIG_ENDIAN ++#else ++#error __BYTE_ORDER__ is not defined ++#endif ++#if defined(__LP64__) ++#define WEBRTC_ARCH_64_BITS ++#else ++#define WEBRTC_ARCH_32_BITS ++#endif + #endif + + #if !(defined(WEBRTC_ARCH_LITTLE_ENDIAN) ^ defined(WEBRTC_ARCH_BIG_ENDIAN)) |