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 }