From patchwork Sat Jul 23 11:06:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix implicit declarations Date: Sat, 23 Jul 2011 01:06:27 -0000 From: Andreas Schwab X-Patchwork-Id: 106436 Message-Id: To: fortran@gcc.gnu.org Cc: gcc-patches@gcc.gnu.org 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 * intrinsics/ctime.c: Include . * intrinsics/getlog.c: Likewise. * runtime/stop.c: Likewise. 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 #include 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 #include #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 . */ #include "libgfortran.h" +#include #include #include