diff options
author | Gerald Pfeifer <gerald@pfeifer.com> | 2018-10-02 20:02:03 +0000 |
---|---|---|
committer | Gerald Pfeifer <gerald@gcc.gnu.org> | 2018-10-02 20:02:03 +0000 |
commit | ff504cc2b8ddefb82ca78cdfd84649ca4f0ec277 (patch) | |
tree | 5141636412f0f7a069c4a0ef6360db510519859a | |
parent | 6bd2b8ec8dddadce2fff21c2f22a71192a2e4e43 (diff) | |
download | gcc-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/ChangeLog | 4 | ||||
-rw-r--r-- | libgfortran/io/close.c | 3 |
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 } |