X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fe50cfdb08ac4f5d3903b0230475c759f3cb4edb..6a10ff0a0b9c2185332906ba6157af69b9d47e26:/src/portable.h diff --git a/src/portable.h b/src/portable.h index 589ce6b586..a4d4f349c5 100644 --- a/src/portable.h +++ b/src/portable.h @@ -21,6 +21,12 @@ # include "gras_config.h" #endif +/* Load this asap to make sure that GNU_SOURCE is defined on need when stdio gets loaded by some random system header */ +#ifdef HAVE_GETLINE +# define _GNU_SOURCE +# include +#endif + #include #ifdef HAVE_ERRNO_H @@ -73,11 +79,6 @@ # define O_BINARY 0 #endif -#ifdef HAVE_GETLINE -# define _GNU_SOURCE -# include -#endif - /**** **** Time handling ****/