freebsd-ports/net/asterisk-bristuff/files/patch-channels-chan_skinny.c
Max Khon d67251b584 Fix build on sparc64 (and any other big-endian arch).
Bump PORTREVISION.

Obtained from:	net/asterisk port
2006-07-24 16:25:46 +00:00

14 lines
506 B
C

$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))