aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk12
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk12')
-rw-r--r--net/asterisk12/Makefile2
-rw-r--r--net/asterisk12/files/patch-channels::chan_skinny.c14
2 files changed, 15 insertions, 1 deletions
diff --git a/net/asterisk12/Makefile b/net/asterisk12/Makefile
index 01f94dd0f5e3..278eca6ed66d 100644
--- a/net/asterisk12/Makefile
+++ b/net/asterisk12/Makefile
@@ -28,7 +28,7 @@ LIB_DEPENDS= speex.3:${PORTSDIR}/audio/speex \
curl.3:${PORTSDIR}/ftp/curl
RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
-ONLY_FOR_ARCHS= i386 amd64
+ONLY_FOR_ARCHS= i386 sparc64 amd64
GNU_CONFIGURE= yes
CONFIGURE_WRKSRC= ${WRKSRC}/editline
diff --git a/net/asterisk12/files/patch-channels::chan_skinny.c b/net/asterisk12/files/patch-channels::chan_skinny.c
new file mode 100644
index 000000000000..acefb8f7222c
--- /dev/null
+++ b/net/asterisk12/files/patch-channels::chan_skinny.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- 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))