aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-11-13 18:07:44 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-11-13 18:07:44 +0000
commit47bf94b79a5c4937a7f922c681fa556154dcb2d3 (patch)
tree3595e0be777ee9b848d1c6966eb09bbb966bfd23
parent1c4188463c7e81c3345a7d4e87eccb5b5a168c44 (diff)
downloadgcc-47bf94b79a5c4937a7f922c681fa556154dcb2d3.zip
gcc-47bf94b79a5c4937a7f922c681fa556154dcb2d3.tar.gz
gcc-47bf94b79a5c4937a7f922c681fa556154dcb2d3.tar.bz2
access.c: Include <stdlib.h>.
* intrinsics/access.c: Include <stdlib.h>. * intrinsics/chdir.c: Likewise. * intrinsics/chmod.c: Likewise. * intrinsics/link.c: Likewise. * intrinsics/perror.c: Likewise. * intrinsics/rename.c: Likewise. * intrinsics/symlnk.c: Likewise. * intrinsics/unlink.c: Likewise. From-SVN: r217514
-rw-r--r--libgfortran/ChangeLog11
-rw-r--r--libgfortran/intrinsics/access.c1
-rw-r--r--libgfortran/intrinsics/chdir.c1
-rw-r--r--libgfortran/intrinsics/chmod.c1
-rw-r--r--libgfortran/intrinsics/link.c1
-rw-r--r--libgfortran/intrinsics/perror.c1
-rw-r--r--libgfortran/intrinsics/rename.c1
-rw-r--r--libgfortran/intrinsics/symlnk.c1
-rw-r--r--libgfortran/intrinsics/unlink.c1
9 files changed, 19 insertions, 0 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 119e1ae..b941e73 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,14 @@
+2014-11-13 Marek Polacek <polacek@redhat.com>
+
+ * intrinsics/access.c: Include <stdlib.h>.
+ * intrinsics/chdir.c: Likewise.
+ * intrinsics/chmod.c: Likewise.
+ * intrinsics/link.c: Likewise.
+ * intrinsics/perror.c: Likewise.
+ * intrinsics/rename.c: Likewise.
+ * intrinsics/symlnk.c: Likewise.
+ * intrinsics/unlink.c: Likewise.
+
2014-11-13 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/60324
diff --git a/libgfortran/intrinsics/access.c b/libgfortran/intrinsics/access.c
index 65a0a10..0c18da0 100644
--- a/libgfortran/intrinsics/access.c
+++ b/libgfortran/intrinsics/access.c
@@ -26,6 +26,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "libgfortran.h"
#include <errno.h>
+#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
diff --git a/libgfortran/intrinsics/chdir.c b/libgfortran/intrinsics/chdir.c
index 87419a8..193e482 100644
--- a/libgfortran/intrinsics/chdir.c
+++ b/libgfortran/intrinsics/chdir.c
@@ -26,6 +26,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "libgfortran.h"
#include <errno.h>
+#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
diff --git a/libgfortran/intrinsics/chmod.c b/libgfortran/intrinsics/chmod.c
index c42fa8c..bdcb676 100644
--- a/libgfortran/intrinsics/chmod.c
+++ b/libgfortran/intrinsics/chmod.c
@@ -28,6 +28,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#if defined(HAVE_SYS_STAT_H)
#include <string.h> /* For memcpy. */
+#include <stdlib.h> /* For free. */
#include <sys/stat.h> /* For stat, chmod and umask. */
diff --git a/libgfortran/intrinsics/link.c b/libgfortran/intrinsics/link.c
index c6084a1..dd9c470 100644
--- a/libgfortran/intrinsics/link.c
+++ b/libgfortran/intrinsics/link.c
@@ -26,6 +26,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "libgfortran.h"
#include <errno.h>
+#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
diff --git a/libgfortran/intrinsics/perror.c b/libgfortran/intrinsics/perror.c
index a8f0972..2bb1305 100644
--- a/libgfortran/intrinsics/perror.c
+++ b/libgfortran/intrinsics/perror.c
@@ -27,6 +27,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include <errno.h>
#include <string.h>
+#include <stdlib.h>
/* SUBROUTINE PERROR(STRING)
CHARACTER(len=*), INTENT(IN) :: STRING */
diff --git a/libgfortran/intrinsics/rename.c b/libgfortran/intrinsics/rename.c
index aabf821..78c3d81 100644
--- a/libgfortran/intrinsics/rename.c
+++ b/libgfortran/intrinsics/rename.c
@@ -26,6 +26,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "libgfortran.h"
#include <errno.h>
+#include <stdlib.h>
#include <string.h>
diff --git a/libgfortran/intrinsics/symlnk.c b/libgfortran/intrinsics/symlnk.c
index 5c53cb7..52a3c4b 100644
--- a/libgfortran/intrinsics/symlnk.c
+++ b/libgfortran/intrinsics/symlnk.c
@@ -26,6 +26,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "libgfortran.h"
#include <errno.h>
+#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
diff --git a/libgfortran/intrinsics/unlink.c b/libgfortran/intrinsics/unlink.c
index 2971a62..4752988 100644
--- a/libgfortran/intrinsics/unlink.c
+++ b/libgfortran/intrinsics/unlink.c
@@ -25,6 +25,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "libgfortran.h"
+#include <stdlib.h>
#include <string.h>
#include <errno.h>