X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7b6fee9e7c5b977e255a29a4039b4e2307a8bc7d..101b9f6ed0eda560b20d652818cd9956479ebece:/include/simgrid_config.h.in diff --git a/include/simgrid_config.h.in b/include/simgrid_config.h.in index b4267e11e4..f82be86ff3 100644 --- a/include/simgrid_config.h.in +++ b/include/simgrid_config.h.in @@ -23,9 +23,12 @@ /* Use that config to declare missing elements */ #ifdef SIMGRID_NEED_GETLINE #include /* size_t */ +#include /* FILE* */ XBT_PUBLIC(long) getline(char **lineptr, size_t * n, FILE * stream); #else -#define _GNU_SOURCE +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif #include #endif