summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-22 21:17:29 +0000
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-22 21:17:29 +0000
commitbe37c4b942b64c51e7c25d7946290a907be95782 (patch)
treef72272458a4008e823c063af476c2db111f1b6c5 /libgfortran
parentc5d7f2f65740ad3659ec083daa6af1df3a6473a7 (diff)
downloadgcc-be37c4b942b64c51e7c25d7946290a907be95782.tar.gz
PR 60324 Handle long path names, don't use PATH_MAX.
2014-05-23 Janne Blomqvist <jb@gcc.gnu.org> PR libfortran/60324 * runtime/string.c: Include stdlib.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210827 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog5
-rw-r--r--libgfortran/runtime/string.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 9f5a39bfcd6..6fe0974098d 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,8 @@
+2014-05-23 Janne Blomqvist <jb@gcc.gnu.org>
+
+ PR libfortran/60324
+ * runtime/string.c: Include stdlib.h.
+
2014-05-22 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/60324
diff --git a/libgfortran/runtime/string.c b/libgfortran/runtime/string.c
index 5beb0fbd971..b95d1997a5c 100644
--- a/libgfortran/runtime/string.c
+++ b/libgfortran/runtime/string.c
@@ -24,6 +24,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "libgfortran.h"
#include <string.h>
+#include <stdlib.h>
/* Given a fortran string, return its length exclusive of the trailing