diff options
author | sobomax <sobomax@FreeBSD.org> | 2006-05-23 10:47:04 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2006-05-23 10:47:04 +0800 |
commit | f63c075bda6f73ee23e9e296ba5e77cbbe8f14a5 (patch) | |
tree | da8c99906ad2b7be714c22ad65f72e9d07f8f0cd /net/asterisk12 | |
parent | cfddcc56704a77560279930c05e8469214ddd0c2 (diff) | |
download | freebsd-ports-gnome-f63c075bda6f73ee23e9e296ba5e77cbbe8f14a5.tar.gz freebsd-ports-gnome-f63c075bda6f73ee23e9e296ba5e77cbbe8f14a5.tar.zst freebsd-ports-gnome-f63c075bda6f73ee23e9e296ba5e77cbbe8f14a5.zip |
Fix on sparc64.
Submitted by: ahze
Diffstat (limited to 'net/asterisk12')
-rw-r--r-- | net/asterisk12/Makefile | 2 | ||||
-rw-r--r-- | net/asterisk12/files/patch-channels::chan_skinny.c | 14 |
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)) |