From ff504cc2b8ddefb82ca78cdfd84649ca4f0ec277 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Tue, 2 Oct 2018 20:02:03 +0000 Subject: [PATCH] * io/close.c [!HAVE_UNLINK_OPEN_FILE]: Include . From-SVN: r264800 --- libgfortran/ChangeLog | 4 ++++ libgfortran/io/close.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index d7447406615..6a8bcc221b7 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,7 @@ +2018-10-02 Gerald Pfeifer + + * io/close.c [!HAVE_UNLINK_OPEN_FILE]: Include . + 2018-09-21 Janne Blomqvist * config.h.in: Regenerated. diff --git a/libgfortran/io/close.c b/libgfortran/io/close.c index cec7a084862..3dcd97ff139 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 +#if !HAVE_UNLINK_OPEN_FILE +#include +#endif typedef enum { CLOSE_DELETE, CLOSE_KEEP, CLOSE_UNSPECIFIED } -- 2.30.2