Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2020 21:34:33 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r525676 - head/net/asterisk-chan_sccp/files
Message-ID:  <202002092134.019LYXXv050424@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002092134.019LYXXv050424>