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 <sch...@linux-m68k.org> * intrinsics/ctime.c: Include <stdlib.h>. * 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 <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> -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."