* io/close.c [!HAVE_UNLINK_OPEN_FILE]: Include <string.h>.
authorGerald Pfeifer <gerald@pfeifer.com>
Tue, 2 Oct 2018 20:02:03 +0000 (20:02 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Tue, 2 Oct 2018 20:02:03 +0000 (20:02 +0000)
From-SVN: r264800

libgfortran/ChangeLog
libgfortran/io/close.c

index d74474066157cde1a1360e043f09bbfa707f95e2..6a8bcc221b73ce1758cc7abaf71b391a91f9d99f 100644 (file)
@@ -1,3 +1,7 @@
+2018-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * io/close.c [!HAVE_UNLINK_OPEN_FILE]: Include <string.h>.
+
 2018-09-21  Janne Blomqvist  <jb@gcc.gnu.org>
 
        * config.h.in: Regenerated.
index cec7a0848625274540ff974c49bae2a93a4efc45..3dcd97ff1397cf82f39184d0632547d2dd6c8d22 100644 (file)
@@ -26,6 +26,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #include "unix.h"
 #include "async.h"
 #include <limits.h>
+#if !HAVE_UNLINK_OPEN_FILE
+#include <string.h>
+#endif
 
 typedef enum
 { CLOSE_DELETE, CLOSE_KEEP, CLOSE_UNSPECIFIED }