0017-contrib-gsm-fix-compilation-with-Xcode-7.3.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From 01651bd7e3da37cb4391b7a95a498c59701cd52f Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
  3. Date: Tue, 5 Apr 2016 17:14:50 +0200
  4. Subject: [PATCH 17/17] contrib/gsm: fix compilation with Xcode 7.3
  5. ---
  6. contrib/src/gsm/gsm-xcode73.patch | 11 +++++++++++
  7. contrib/src/gsm/rules.mak | 1 +
  8. 2 files changed, 12 insertions(+)
  9. create mode 100644 contrib/src/gsm/gsm-xcode73.patch
  10. diff --git a/contrib/src/gsm/gsm-xcode73.patch b/contrib/src/gsm/gsm-xcode73.patch
  11. new file mode 100644
  12. index 0000000..677d7b4
  13. --- /dev/null
  14. +++ b/contrib/src/gsm/gsm-xcode73.patch
  15. @@ -0,0 +1,11 @@
  16. +diff -ru gsm-broken/src/code.c gsm/src/code.c
  17. +--- gsm-broken/src/code.c 2006-04-26 21:16:50.000000000 +0200
  18. ++++ gsm/src/code.c 2016-04-05 17:13:19.000000000 +0200
  19. +@@ -19,6 +19,7 @@
  20. + #include "private.h"
  21. + #include "gsm.h"
  22. + #include "proto.h"
  23. ++#include <string.h>
  24. +
  25. + /*
  26. + * 4.2 FIXED POINT IMPLEMENTATION OF THE RPE-LTP CODER
  27. diff --git a/contrib/src/gsm/rules.mak b/contrib/src/gsm/rules.mak
  28. index 38553d3..3cecb30 100644
  29. --- a/contrib/src/gsm/rules.mak
  30. +++ b/contrib/src/gsm/rules.mak
  31. @@ -11,6 +11,7 @@ gsm: libgsm_$(GSM_VERSION).tar.gz .sum-gsm
  32. $(UNPACK)
  33. mv gsm-1.0-* libgsm_$(GSM_VERSION)
  34. $(APPLY) $(SRC)/gsm/gsm-cross.patch
  35. + $(APPLY) $(SRC)/gsm/gsm-xcode73.patch
  36. sed -e 's/^CFLAGS.*=/CFLAGS+=/' -i.orig libgsm_$(GSM_VERSION)/Makefile
  37. $(MOVE)
  38. --
  39. 2.8.1