From 4944e0c7b4f9f22eb9e75ac2d72d77e1679f8c50 Mon Sep 17 00:00:00 2001 From: Edric Milaret <edric.ladent-milaret@savoirfairelinux.com> Date: Tue, 14 Jun 2016 12:49:56 -0400 Subject: [PATCH] ios: fix gsm build Change-Id: I2e7798dd624209f67139b5e39d8d87507a56900f Tuleap: #313 --- contrib/src/gsm/include_ios.patch | 11 +++++++++++ contrib/src/gsm/rules.mak | 1 + 2 files changed, 12 insertions(+) create mode 100644 contrib/src/gsm/include_ios.patch diff --git a/contrib/src/gsm/include_ios.patch b/contrib/src/gsm/include_ios.patch new file mode 100644 index 0000000000..80db687204 --- /dev/null +++ b/contrib/src/gsm/include_ios.patch @@ -0,0 +1,11 @@ +--- a/src/code.c 2016-06-13 10:49:31.000000000 -0400 ++++ b/src/code.c 2016-06-13 10:49:22.000000000 -0400 +@@ -16,6 +16,8 @@ + extern char * memcpy P((char *, char *, int)); + #endif + ++#include <string.h> ++ + #include "private.h" + #include "gsm.h" + #include "proto.h" diff --git a/contrib/src/gsm/rules.mak b/contrib/src/gsm/rules.mak index 2ca2b440f2..c080287653 100644 --- a/contrib/src/gsm/rules.mak +++ b/contrib/src/gsm/rules.mak @@ -12,6 +12,7 @@ $(TARBALLS)/libgsm_$(GSM_VERSION).tar.gz: gsm: libgsm_$(GSM_VERSION).tar.gz .sum-gsm $(UNPACK) mv gsm-1.0-* libgsm_$(GSM_VERSION) + $(APPLY) $(SRC)/gsm/include_ios.patch $(APPLY) $(SRC)/gsm/gsm-cross.patch sed -e 's/^CFLAGS.*=/CFLAGS+=/' -i.orig libgsm_$(GSM_VERSION)/Makefile $(MOVE) -- GitLab