X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c4b456eb4ff7aa5852e276391b24667431be5d84..101b9f6ed0eda560b20d652818cd9956479ebece:/include/simgrid_config.h.in diff --git a/include/simgrid_config.h.in b/include/simgrid_config.h.in index 18e01d0894..f82be86ff3 100644 --- a/include/simgrid_config.h.in +++ b/include/simgrid_config.h.in @@ -22,7 +22,14 @@ /* 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 +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif +#include #endif