diff mbox

Fix implicit declarations

Message ID m2sjpxcl3g.fsf@igel.home
State New
Headers show

Commit Message

Andreas Schwab July 23, 2011, 11:06 a.m. UTC
This fixes the implicit declarations of exit and free in libgfortran.
Tested on ppc-linux and checked in as obvious.

Andreas.

2011-07-23  Andreas Schwab  <schwab@linux-m68k.org>

	* intrinsics/ctime.c: Include <stdlib.h>.
	* intrinsics/getlog.c: Likewise.
	* runtime/stop.c: Likewise.
diff mbox

Patch

Index: libgfortran/intrinsics/ctime.c
===================================================================
--- libgfortran/intrinsics/ctime.c	(revision 176674)
+++ libgfortran/intrinsics/ctime.c	(working copy)
@@ -27,6 +27,7 @@  see the files COPYING3 and COPYING.RUNTI
 
 #include "time_1.h"
 
+#include <stdlib.h>
 #include <string.h>
 
 
Index: libgfortran/intrinsics/getlog.c
===================================================================
--- libgfortran/intrinsics/getlog.c	(revision 176674)
+++ libgfortran/intrinsics/getlog.c	(working copy)
@@ -25,6 +25,7 @@  see the files COPYING3 and COPYING.RUNTI
 
 #include "libgfortran.h"
 
+#include <stdlib.h>
 #include <string.h>
 
 #ifdef HAVE_UNISTD_H
Index: libgfortran/runtime/stop.c
===================================================================
--- libgfortran/runtime/stop.c	(revision 176674)
+++ libgfortran/runtime/stop.c	(working copy)
@@ -24,6 +24,7 @@  see the files COPYING3 and COPYING.RUNTI
 <http://www.gnu.org/licenses/>.  */
 
 #include "libgfortran.h"
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>