From b1a72bb591050efb30f692983ab090c98e3786b0 Mon Sep 17 00:00:00 2001 From: fjoe Date: Mon, 24 Jul 2006 16:25:46 +0000 Subject: Fix build on sparc64 (and any other big-endian arch). Bump PORTREVISION. Obtained from: net/asterisk port --- net/asterisk-bristuff/Makefile | 4 ---- net/asterisk-bristuff/files/patch-channels-chan_skinny.c | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 net/asterisk-bristuff/files/patch-channels-chan_skinny.c (limited to 'net') diff --git a/net/asterisk-bristuff/Makefile b/net/asterisk-bristuff/Makefile index 38610fed79b..8cbf6106ab9 100644 --- a/net/asterisk-bristuff/Makefile +++ b/net/asterisk-bristuff/Makefile @@ -47,10 +47,6 @@ MAN8= asterisk.8 astgenkey.8 autosupport.8 safe_asterisk.8 .include -.if ${ARCH} == "amd64" || ${ARCH} == "sparc64" -BROKEN= does not compile on ${ARCH} -.endif - .if ${ARCH} != "i386" WITHOUT_H323= 1 WITHOUT_ZAPTEL= 1 diff --git a/net/asterisk-bristuff/files/patch-channels-chan_skinny.c b/net/asterisk-bristuff/files/patch-channels-chan_skinny.c new file mode 100644 index 00000000000..043067a1ce6 --- /dev/null +++ b/net/asterisk-bristuff/files/patch-channels-chan_skinny.c @@ -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)) -- cgit