aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-11-06 18:01:56 +0800
committerbapt <bapt@FreeBSD.org>2016-11-06 18:01:56 +0800
commit30d660002bdcc2cd9e3445744fe45c7cfd21b720 (patch)
tree2012855da21c27ad74de94a4d2674c7cde0fce8f
parentacf38c4022153ee1e942c960c396aeb88acb187e (diff)
downloadfreebsd-ports-gnome-30d660002bdcc2cd9e3445744fe45c7cfd21b720.tar.gz
freebsd-ports-gnome-30d660002bdcc2cd9e3445744fe45c7cfd21b720.tar.zst
freebsd-ports-gnome-30d660002bdcc2cd9e3445744fe45c7cfd21b720.zip
Fix build with gcc 4.2
-rw-r--r--audio/libsamplerate/files/patch-examples_audio__out.c14
-rw-r--r--audio/libsamplerate/files/patch-src_samplerate.h4
2 files changed, 16 insertions, 2 deletions
diff --git a/audio/libsamplerate/files/patch-examples_audio__out.c b/audio/libsamplerate/files/patch-examples_audio__out.c
new file mode 100644
index 000000000000..769c218b654b
--- /dev/null
+++ b/audio/libsamplerate/files/patch-examples_audio__out.c
@@ -0,0 +1,14 @@
+--- examples/audio_out.c.orig 2016-09-13 10:20:20 UTC
++++ examples/audio_out.c
+@@ -33,9 +33,9 @@
+ #define MAKE_MAGIC(a,b,c,d,e,f,g,h) \
+ ((a) + ((b) << 1) + ((c) << 2) + ((d) << 3) + ((e) << 4) + ((f) << 5) + ((g) << 6) + ((h) << 7))
+
+-typedef struct AUDIO_OUT_s
++struct AUDIO_OUT_s
+ { int magic ;
+-} AUDIO_OUT ;
++};
+
+
+ /*------------------------------------------------------------------------------
diff --git a/audio/libsamplerate/files/patch-src_samplerate.h b/audio/libsamplerate/files/patch-src_samplerate.h
index e316af6767e2..d28b15a618a3 100644
--- a/audio/libsamplerate/files/patch-src_samplerate.h
+++ b/audio/libsamplerate/files/patch-src_samplerate.h
@@ -1,6 +1,6 @@
---- src/samplerate.h.orig 2011-01-19 10:39:21 UTC
+--- src/samplerate.h.orig 2016-09-13 10:13:14 UTC
+++ src/samplerate.h
-@@ -174,7 +174,7 @@ enum
+@@ -160,7 +160,7 @@ enum
SRC_SINC_MEDIUM_QUALITY = 1,
SRC_SINC_FASTEST = 2,
SRC_ZERO_ORDER_HOLD = 3,