aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@pfeifer.com>2018-10-02 20:02:03 +0000
committerGerald Pfeifer <gerald@gcc.gnu.org>2018-10-02 20:02:03 +0000
commitff504cc2b8ddefb82ca78cdfd84649ca4f0ec277 (patch)
tree5141636412f0f7a069c4a0ef6360db510519859a
parent6bd2b8ec8dddadce2fff21c2f22a71192a2e4e43 (diff)
downloadgcc-ff504cc2b8ddefb82ca78cdfd84649ca4f0ec277.zip
gcc-ff504cc2b8ddefb82ca78cdfd84649ca4f0ec277.tar.gz
gcc-ff504cc2b8ddefb82ca78cdfd84649ca4f0ec277.tar.bz2
* io/close.c [!HAVE_UNLINK_OPEN_FILE]: Include <string.h>.
From-SVN: r264800
-rw-r--r--libgfortran/ChangeLog4
-rw-r--r--libgfortran/io/close.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index d744740..6a8bcc2 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -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.
diff --git a/libgfortran/io/close.c b/libgfortran/io/close.c
index cec7a08..3dcd97f 100644
--- a/libgfortran/io/close.c
+++ b/libgfortran/io/close.c
@@ -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 }