X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/342fcbf918c2e2e7d1a9e149722362b518d0ba9b..a3570625c9460617ccad1803b50bc4f1793b6376:/include/simgrid_config.h.in?ds=sidebyside diff --git a/include/simgrid_config.h.in b/include/simgrid_config.h.in index 69df80b9b6..f82be86ff3 100644 --- a/include/simgrid_config.h.in +++ b/include/simgrid_config.h.in @@ -22,9 +22,13 @@ /* 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