diff options
author | Gerald Pfeifer <gerald@pfeifer.com> | 2018-10-16 15:21:19 +0000 |
---|---|---|
committer | Gerald Pfeifer <gerald@gcc.gnu.org> | 2018-10-16 15:21:19 +0000 |
commit | 001521b8ee9a64b83296088f61db264b0c26f6c6 (patch) | |
tree | 04608424f19ec01a748211d6737396795843a92b | |
parent | 29813f1b2f264ed0c77b79473f204df2a46f3715 (diff) | |
download | gcc-001521b8ee9a64b83296088f61db264b0c26f6c6.tar.gz |
backport: close.c: Include <string.h>.
Backport from trunk
* io/close.c [!HAVE_UNLINK_OPEN_FILE]: Include <string.h>.
From-SVN: r265198
-rw-r--r-- | libgfortran/ChangeLog | 5 | ||||
-rw-r--r-- | libgfortran/io/close.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 2bb43830478..c4ca557c8ca 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2018-10-16 Gerald Pfeifer <gerald@pfeifer.com> + + Backport from trunk + * io/close.c [!HAVE_UNLINK_OPEN_FILE]: Include <string.h>. + 2018-01-03 Janne Blomqvist <jb@gcc.gnu.org> Backport from trunk diff --git a/libgfortran/io/close.c b/libgfortran/io/close.c index c29c125b10c..db45f6ce4e1 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 <limits.h> +#if !HAVE_UNLINK_OPEN_FILE +#include <string.h> +#endif typedef enum { CLOSE_DELETE, CLOSE_KEEP, CLOSE_UNSPECIFIED } |