A new user interface for you! Read more...

File fix-implicit-fortify-decl.patch of Package openmodelica

--- openmodelica-1.13.2/OMCompiler/3rdParty/FMIL/ThirdParty/Zlib/zlib-1.2.6/gzwrite.c	2019-01-31 10:00:10.000000000 -0400
+++ openmodelica-1.13.2-new/OMCompiler/3rdParty/FMIL/ThirdParty/Zlib/zlib-1.2.6/gzwrite.c	2019-04-03 00:58:11.098238318 -0400
@@ -3,6 +3,7 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
+#define _XOPEN_SOURCE 500
 #include "gzguts.h"
 
 /* Local functions */
--- openmodelica-1.13.2/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/zlib/gzread.c	2019-01-31 10:00:10.000000000 -0400
+++ openmodelica-1.13.2-new/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/zlib/gzread.c	2019-04-03 00:58:38.089402978 -0400
@@ -3,6 +3,7 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
+#include <unistd.h>
 #include "gzguts.h"
 
 /* Local functions */
--- openmodelica-1.13.2/OMSimulator/3rdParty/FMIL/ThirdParty/Zlib/zlib-1.2.6/gzwrite.c	2019-01-31 10:00:10.000000000 -0400
+++ openmodelica-1.13.2-new/OMSimulator/3rdParty/FMIL/ThirdParty/Zlib/zlib-1.2.6/gzwrite.c	2019-04-03 00:58:56.820823275 -0400
@@ -3,6 +3,7 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
+#define _XOPEN_SOURCE 500
 #include "gzguts.h"
 
 /* Local functions */