]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: close.c: Include <string.h>.
authorGerald Pfeifer <gerald@pfeifer.com>
Sat, 13 Oct 2018 11:25:11 +0000 (11:25 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Sat, 13 Oct 2018 11:25:11 +0000 (11:25 +0000)
Backport from trunk
* io/close.c [!HAVE_UNLINK_OPEN_FILE]: Include <string.h>.

From-SVN: r265141

libgfortran/ChangeLog
libgfortran/io/close.c

index 004b25865b6163df071f02ff68ac9c8a13674177..43af6bb3a6daeaa30f252adde26af2c5a36a732c 100644 (file)
@@ -1,3 +1,8 @@
+2018-10-13  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       Backport from trunk
+       * io/close.c [!HAVE_UNLINK_OPEN_FILE]: Include <string.h>.
+
 2018-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        Backport from trunk
index e40fd92b8bf5046bddbf9dbb717839a06a4e4a8d..3bf96cd57ae8e0673cf9b8ceaaefc868e091e0d2 100644 (file)
@@ -25,6 +25,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #include "io.h"
 #include "unix.h"
 #include <limits.h>
+#if !HAVE_UNLINK_OPEN_FILE
+#include <string.h>
+#endif
 
 typedef enum
 { CLOSE_DELETE, CLOSE_KEEP, CLOSE_UNSPECIFIED }