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

From-SVN: r265198

libgfortran/ChangeLog
libgfortran/io/close.c

index 2bb438304780ccf9af9864495d67599fb4728fe7..c4ca557c8ca5257de41e1d9e56909a6bb399ff43 100644 (file)
@@ -1,3 +1,8 @@
+2018-10-16  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       Backport from trunk
+       * io/close.c [!HAVE_UNLINK_OPEN_FILE]: Include <string.h>.
+
 2018-01-03  Janne Blomqvist  <jb@gcc.gnu.org>
 
        Backport from trunk
index c29c125b10c0104c972c9266840f5d946ace44d6..db45f6ce4e1b19d7ddb11d1b1149649a17f7fde7 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 }