From 11cdf71dd6731028b21cd8a549d31e26a3cc79af Mon Sep 17 00:00:00 2001 From: Andrew Pogrebennyk Date: Thu, 5 Jun 2014 13:57:55 +0200 Subject: [PATCH] MT#7347 fix broken build (scope issues with GCC). (cherry picked from commit 5fab0995ddaacb0b90fcef1b136b8127d75c0993) --- debian/patches/series | 1 + ...ome-strange-scope-issues-encountered.patch | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 debian/patches/sipwise/0125-c-f-correcting-some-strange-scope-issues-encountered.patch diff --git a/debian/patches/series b/debian/patches/series index 977fa116..4a67d90e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -125,4 +125,5 @@ sipwise/0001-fix-sems-process-returns-always-0-when-daemonized.patch sipwise/0002-core-fix-return-status-pipe-machinery-in-non-daemon-.patch sipwise/0123-MT-6475-check-method-ACK-or-PRACK-before-deleting-tr.patch sipwise/0124-added-reference-counting-to-plug-in-interfaces.patch +sipwise/0125-c-f-correcting-some-strange-scope-issues-encountered.patch no_config.patch diff --git a/debian/patches/sipwise/0125-c-f-correcting-some-strange-scope-issues-encountered.patch b/debian/patches/sipwise/0125-c-f-correcting-some-strange-scope-issues-encountered.patch new file mode 100644 index 00000000..be6d7430 --- /dev/null +++ b/debian/patches/sipwise/0125-c-f-correcting-some-strange-scope-issues-encountered.patch @@ -0,0 +1,45 @@ +From 73490566761bb0fb09a6ebd74566d7f2b789c62f Mon Sep 17 00:00:00 2001 +From: Raphael Coeffic +Date: Tue, 20 Nov 2012 15:33:35 +0100 +Subject: [PATCH] c/f: correcting some strange scope issues encountered with + GCC & clang on osx. + +--- + apps/ivr/Ivr.cpp | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/apps/ivr/Ivr.cpp b/apps/ivr/Ivr.cpp +index b84afa7..a4d74c3 100644 +--- a/apps/ivr/Ivr.cpp ++++ b/apps/ivr/Ivr.cpp +@@ -41,7 +41,9 @@ + #include + + #include ++#include + using std::set; ++using std::string; + + + #define PYFILE_REGEX "(.+)\\.(py|pyc|pyo)$" +@@ -439,7 +441,7 @@ int IvrFactory::onLoad() + + DBG("directory '%s' opened\n",script_path.c_str()); + +- set unique_entries; ++ std::set unique_entries; + regmatch_t pmatch[2]; + + struct dirent* entry=0; +@@ -457,7 +459,7 @@ int IvrFactory::onLoad() + regfree(®); + + AmPlugIn* plugin = AmPlugIn::instance(); +- for(set::iterator it = unique_entries.begin(); ++ for(std::set::iterator it = unique_entries.begin(); + it != unique_entries.end(); it++) { + + if(loadScript(*it)){ +-- +2.0.0 +