[vlc-commits] contrib/gsm: add missing include

Felix Paul Kühne git at videolan.org
Fri Apr 8 12:04:48 CEST 2016


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Apr  8 11:52:00 2016 +0200| [fae5025bae05cb2d1d2dfd42b0c9342ecc37a029] | committer: Hugo Beauzée-Luyssen

contrib/gsm: add missing include

This fixes compilation with clang 7.3

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fae5025bae05cb2d1d2dfd42b0c9342ecc37a029
---

 contrib/src/gsm/gsm-missing-include.patch |   11 +++++++++++
 contrib/src/gsm/rules.mak                 |    1 +
 2 files changed, 12 insertions(+)

diff --git a/contrib/src/gsm/gsm-missing-include.patch b/contrib/src/gsm/gsm-missing-include.patch
new file mode 100644
index 0000000..677d7b4
--- /dev/null
+++ b/contrib/src/gsm/gsm-missing-include.patch
@@ -0,0 +1,11 @@
+diff -ru gsm-broken/src/code.c gsm/src/code.c
+--- gsm-broken/src/code.c	2006-04-26 21:16:50.000000000 +0200
++++ gsm/src/code.c	2016-04-05 17:13:19.000000000 +0200
+@@ -19,6 +19,7 @@
+ #include	"private.h"
+ #include	"gsm.h"
+ #include	"proto.h"
++#include	<string.h>
+ 
+ /* 
+  *  4.2 FIXED POINT IMPLEMENTATION OF THE RPE-LTP CODER 
diff --git a/contrib/src/gsm/rules.mak b/contrib/src/gsm/rules.mak
index 38553d3..9d50300 100644
--- a/contrib/src/gsm/rules.mak
+++ b/contrib/src/gsm/rules.mak
@@ -11,6 +11,7 @@ gsm: libgsm_$(GSM_VERSION).tar.gz .sum-gsm
 	$(UNPACK)
 	mv gsm-1.0-* libgsm_$(GSM_VERSION)
 	$(APPLY) $(SRC)/gsm/gsm-cross.patch
+	$(APPLY) $(SRC)/gsm/gsm-missing-include.patch
 	sed -e 's/^CFLAGS.*=/CFLAGS+=/' -i.orig libgsm_$(GSM_VERSION)/Makefile
 	$(MOVE)
 



More information about the vlc-commits mailing list