This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, fortran]: Include stdlib.h in intrinsics/getcwd.c


... to avoid "implicit declaration of function âfreeâ" warning.

2014-05-27  Uros Bizjak  <ubizjak@gmail.com>

    * intrinsics/getcwd.c: Include stdlib.h.

Tested on x86_64-pc-linux-gnu.

OK for mainline?

Uros.

Index: intrinsics/getcwd.c
===================================================================
--- intrinsics/getcwd.c (revision 210956)
+++ intrinsics/getcwd.c (working copy)
@@ -25,6 +25,7 @@

 #include "libgfortran.h"

+#include <stdlib.h>
 #include <string.h>
 #include <errno.h>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]