[vlc-devel] [PATCH] contrib/gsm: add missing include

Hugo Beauzée-Luyssen hugo at beauzee.fr
Fri Apr 8 12:01:16 CEST 2016


On 04/08/2016 11:52 AM, Felix Paul Kühne wrote:
> This fixes compilation with clang 7.3
> ---
>   contrib/src/gsm/gsm-missing-include.patch | 11 +++++++++++
>   contrib/src/gsm/rules.mak                 |  1 +
>   2 files changed, 12 insertions(+)
>   create mode 100644 contrib/src/gsm/gsm-missing-include.patch
>
> 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)
>
>
LGTM

Regards,


More information about the vlc-devel mailing list