From: mquinson Date: Fri, 9 Mar 2007 16:40:16 +0000 (+0000) Subject: Load the getline prototype when it exists X-Git-Tag: v3.3~2133 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5c0fdee633207037b1fb1383525200649ed841b7?ds=sidebyside Load the getline prototype when it exists git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3226 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/portable.h b/src/portable.h index 03bbd85d49..ab84d51c99 100644 --- a/src/portable.h +++ b/src/portable.h @@ -16,7 +16,7 @@ */ #ifdef _WIN32 # include "win32/config.h" -# include +# include #else # include "gras_config.h" #endif @@ -73,6 +73,11 @@ # define O_BINARY 0 #endif +#ifdef HAVE_GETLINE +# define _GNU_SOURCE +# include +#endif + /**** **** Time handling ****/