svn commit: r525676 - head/net/asterisk-chan_sccp/files

Piotr Kubaj pkubaj at FreeBSD.org
Sun Feb 9 21:34:33 UTC 2020


Author: pkubaj
Date: Sun Feb  9 21:34:32 2020
New Revision: 525676
URL: https://svnweb.freebsd.org/changeset/ports/525676

Log:
  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 at talon.nl (maintainer)

Added:
  head/net/asterisk-chan_sccp/files/
  head/net/asterisk-chan_sccp/files/patch-src_define.h   (contents, props changed)

Added: head/net/asterisk-chan_sccp/files/patch-src_define.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/asterisk-chan_sccp/files/patch-src_define.h	Sun Feb  9 21:34:32 2020	(r525676)
@@ -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"


More information about the svn-ports-head mailing list