diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-02-09 21:34:32 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-02-09 21:34:32 +0000 |
commit | 14488731cb3731cffa5bfe082367c0a2794462db (patch) | |
tree | 744884813403630989c516df38e5d5cb48bf412d /net/asterisk-chan_sccp | |
parent | 6b64e6513518cd6f237fcd36ed4106f78e990524 (diff) | |
download | ports-14488731cb3731cffa5bfe082367c0a2794462db.tar.gz ports-14488731cb3731cffa5bfe082367c0a2794462db.zip |
net/asterisk-chan_sccp: fix build on big-endian architectures with clang
FreeBSD doesn't have __bswap_16() and __bswap_32(). Use bswap16() and bswap32() instead.
PR: 243872
Approved by: ddegroot@talon.nl (maintainer)
Notes
Notes:
svn path=/head/; revision=525676
Diffstat (limited to 'net/asterisk-chan_sccp')
-rw-r--r-- | net/asterisk-chan_sccp/files/patch-src_define.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net/asterisk-chan_sccp/files/patch-src_define.h b/net/asterisk-chan_sccp/files/patch-src_define.h new file mode 100644 index 000000000000..0f551961e830 --- /dev/null +++ b/net/asterisk-chan_sccp/files/patch-src_define.h @@ -0,0 +1,17 @@ +--- src/define.h.orig 2020-02-04 11:13:32 UTC ++++ src/define.h +@@ -103,10 +103,10 @@ SCCP_LINE unsigned long long __bswap_64(unsigned long + #define htolel(x) (x) + #define htoles(x) (x) + #else +-#define letohs(x) __bswap_16(x) +-#define htoles(x) __bswap_16(x) +-#define letohl(x) __bswap_32(x) +-#define htolel(x) __bswap_32(x) ++#define letohs(x) bswap16(x) ++#define htoles(x) bswap16(x) ++#define letohl(x) bswap32(x) ++#define htolel(x) bswap32(x) + #endif + + #define SCCP_TECHTYPE_STR "SCCP" |