aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/avifile
diff options
context:
space:
mode:
authordaichi <daichi@FreeBSD.org>2003-07-03 21:31:39 +0800
committerdaichi <daichi@FreeBSD.org>2003-07-03 21:31:39 +0800
commit8e44749bb5e0e94e734bd6c3db22e2484b5ecdb5 (patch)
tree6b1de1530c6a665bbcab45ec67bb990da4db43dc /multimedia/avifile
parent44a97175dcdf17dfd9e85b6f05a840570749ae49 (diff)
downloadfreebsd-ports-gnome-8e44749bb5e0e94e734bd6c3db22e2484b5ecdb5.tar.gz
freebsd-ports-gnome-8e44749bb5e0e94e734bd6c3db22e2484b5ecdb5.tar.zst
freebsd-ports-gnome-8e44749bb5e0e94e734bd6c3db22e2484b5ecdb5.zip
fix multimedia/avifile: avifile WITH_AC3PASSTHROUGH=yes build failure
PR: 47240 Submitted by: Chris BeHanna <chris@pennasoft.com>
Diffstat (limited to 'multimedia/avifile')
-rw-r--r--multimedia/avifile/files/patch-plugins::libac3pass::ac3-iec958.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/multimedia/avifile/files/patch-plugins::libac3pass::ac3-iec958.c b/multimedia/avifile/files/patch-plugins::libac3pass::ac3-iec958.c
new file mode 100644
index 000000000000..51facd5c8752
--- /dev/null
+++ b/multimedia/avifile/files/patch-plugins::libac3pass::ac3-iec958.c
@@ -0,0 +1,13 @@
+--- plugins/libac3pass/ac3-iec958.c.orig Sun Jan 19 23:22:12 2003
++++ plugins/libac3pass/ac3-iec958.c Sun Jan 19 23:29:53 2003
+@@ -21,7 +21,9 @@
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <string.h>
+-#ifndef __USE_XOPEN
++#if !defined(__USE_XOPEN) && ((__FreeBSD_cc_version < 460001) || \
++ defined(_ANSI_SOURCE) || \
++ defined(_POSIX_SOURCE))
+ void swab(const void *from, void *to, ssize_t n);
+ #endif
+ #include "ac3-iec958.h"