--- /dev/null 2016-10-30 23:20:11.000000000 -0400 +++ editors/libreoffice/files/patch-connectivity_source_commontools_dbconversion.cxx 2016-10-30 23:21:20.193510000 -0400 @@ -0,0 +1,14 @@ +--- connectivity/source/commontools/dbconversion.cxx.orig 2016-10-30 21:23:17 UTC ++++ connectivity/source/commontools/dbconversion.cxx +@@ -17,6 +17,11 @@ + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + ++// fix for lang/gcc5 ++#if __GNUC__ == 5 && __GNUC_MINOR__ == 4 ++#include ++#endif ++ + #include + #include + #include --- /dev/null 2016-10-30 23:20:11.000000000 -0400 +++ editors/libreoffice/files/patch-connectivity_source_drivers_dbase_DTable.cxx 2016-10-30 23:21:20.194973000 -0400 @@ -0,0 +1,14 @@ +--- connectivity/source/drivers/dbase/DTable.cxx.orig 2016-10-30 22:05:30 UTC ++++ connectivity/source/drivers/dbase/DTable.cxx +@@ -17,6 +17,11 @@ + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + ++// fix for lang/gcc5 ++#if __GNUC__ == 5 && __GNUC_MINOR__ == 4 ++#include ++#endif ++ + #include "dbase/DTable.hxx" + #include + #include --- /dev/null 2016-10-30 23:20:11.000000000 -0400 +++ editors/libreoffice/files/patch-sc_source_core_opencl_formulagroupcl.cxx 2016-10-30 23:21:20.196355000 -0400 @@ -0,0 +1,15 @@ +--- sc/source/core/opencl/formulagroupcl.cxx.orig 2016-10-30 23:28:26 UTC ++++ sc/source/core/opencl/formulagroupcl.cxx +@@ -7,6 +7,12 @@ + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + ++// fix for lang/gcc5 ++#if __GNUC__ == 5 && __GNUC_MINOR__ == 4 ++#define _GLIBCXX_USE_C99 1 ++#include ++#endif ++ + #include "formulagroup.hxx" + #include "formulagroupcl.hxx" + #include "clkernelthread.hxx" --- /dev/null 2016-10-30 23:20:11.000000000 -0400 +++ editors/libreoffice/files/patch-svtools_source_svhtml_parhtml.cxx 2016-10-30 23:21:20.197741000 -0400 @@ -0,0 +1,13 @@ +--- svtools/source/svhtml/parhtml.cxx.orig 2016-10-30 21:13:49 UTC ++++ svtools/source/svhtml/parhtml.cxx +@@ -17,6 +17,10 @@ + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + ++// fix for lang/gcc5 ++#if __GNUC__ == 5 && __GNUC_MINOR__ == 4 ++#include ++#endif + + #include + #include --- /dev/null 2016-10-30 23:20:11.000000000 -0400 +++ editors/libreoffice/files/patch-svtools_source_svrtf_svparser.cxx 2016-10-30 23:21:20.199020000 -0400 @@ -0,0 +1,13 @@ +--- svtools/source/svrtf/svparser.cxx.orig 2016-10-30 20:43:27 UTC ++++ svtools/source/svrtf/svparser.cxx +@@ -24,6 +24,10 @@ + #include + + #include ++// fix for lang/gcc5 ++#if __GNUC__ == 5 && __GNUC_MINOR__ == 4 ++#include ++#endif + + // structure to store the actuel data + struct SvParser_Impl --- /dev/null 2016-10-30 23:20:11.000000000 -0400 +++ editors/libreoffice/files/patch-sw_qa_extras_ooxmlimport_ooxmlimport.cxx 2016-10-30 23:21:20.200358000 -0400 @@ -0,0 +1,14 @@ +--- sw/qa/extras/ooxmlimport/ooxmlimport.cxx.orig 2016-10-31 03:05:53 UTC ++++ sw/qa/extras/ooxmlimport/ooxmlimport.cxx +@@ -7,6 +7,11 @@ + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + ++// fix for lang/gcc5 ++#if __GNUC__ == 5 && __GNUC_MINOR__ == 4 ++#define _GLIBCXX_USE_C99 1 ++#endif ++ + #include "config_test.h" + + #ifdef MACOSX --- /dev/null 2016-10-30 23:20:11.000000000 -0400 +++ editors/libreoffice/files/patch-sw_source_filter_html_parcss1.cxx 2016-10-30 23:21:20.201657000 -0400 @@ -0,0 +1,14 @@ +--- sw/source/filter/html/parcss1.cxx.orig 2016-10-30 23:55:33 UTC ++++ sw/source/filter/html/parcss1.cxx +@@ -17,6 +17,11 @@ + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + ++// fix for lang/gcc5 ++#if __GNUC__ == 5 && __GNUC_MINOR__ == 4 ++#include ++#endif ++ + #include + #include + #include --- /dev/null 2016-10-30 23:20:11.000000000 -0400 +++ editors/libreoffice/files/patch-vcl_workben_mtfdemo.cxx 2016-10-30 23:21:20.202883000 -0400 @@ -0,0 +1,13 @@ +--- vcl/workben/mtfdemo.cxx.orig 2016-10-30 20:38:14 UTC ++++ vcl/workben/mtfdemo.cxx +@@ -30,6 +30,10 @@ + #include + + #include ++// fix for lang/gcc5 ++#if __GNUC__ == 5 && __GNUC_MINOR__ == 4 ++#include ++#endif + + using namespace com::sun::star; +