From: Gerald Pfeifer Date: Sat, 13 Oct 2018 11:25:11 +0000 (+0000) Subject: backport: close.c: Include . X-Git-Tag: releases/gcc-7.4.0~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f726711112d20d6d496a83e9d680639fe4712115;p=thirdparty%2Fgcc.git backport: close.c: Include . Backport from trunk * io/close.c [!HAVE_UNLINK_OPEN_FILE]: Include . From-SVN: r265141 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 004b25865b61..43af6bb3a6da 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2018-10-13 Gerald Pfeifer + + Backport from trunk + * io/close.c [!HAVE_UNLINK_OPEN_FILE]: Include . + 2018-09-18 Kyrylo Tkachov Backport from trunk diff --git a/libgfortran/io/close.c b/libgfortran/io/close.c index e40fd92b8bf5..3bf96cd57ae8 100644 --- a/libgfortran/io/close.c +++ b/libgfortran/io/close.c @@ -25,6 +25,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "io.h" #include "unix.h" #include +#if !HAVE_UNLINK_OPEN_FILE +#include +#endif typedef enum { CLOSE_DELETE, CLOSE_KEEP, CLOSE_UNSPECIFIED }