1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Fix build on sparc64 (and any other big-endian arch).

Bump PORTREVISION.

Obtained from:	net/asterisk port
This commit is contained in:
Max Khon 2006-07-24 16:25:46 +00:00
parent d9d0927916
commit d67251b584
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=168642
2 changed files with 14 additions and 4 deletions

View File

@ -47,10 +47,6 @@ MAN8= asterisk.8 astgenkey.8 autosupport.8 safe_asterisk.8
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
BROKEN= does not compile on ${ARCH}
.endif
.if ${ARCH} != "i386"
WITHOUT_H323= 1
WITHOUT_ZAPTEL= 1

View File

@ -0,0 +1,14 @@
$FreeBSD: /tmp/pcvs/ports/net/asterisk-bristuff/files/Attic/patch-channels-chan_skinny.c,v 1.1 2006-07-24 16:25:46 fjoe Exp $
--- channels/chan_skinny.c.orig
+++ channels/chan_skinny.c
@@ -99,7 +99,7 @@
#define htolel(x) (x)
#define htoles(x) (x)
#else
-#if defined(SOLARIS) || defined(__Darwin__) || defined(__NetBSD__)
+#if defined(SOLARIS) || defined(__Darwin__) || defined(__NetBSD__) || defined(__FreeBSD__)
#define __bswap_16(x) \
((((x) & 0xff00) >> 8) | \
(((x) & 0x00ff) << 8))