From: mquinson Date: Wed, 23 Dec 2009 17:04:56 +0000 (+0000) Subject: Try to load the stdlib before defining getline (on mac) so that size_t gets defined X-Git-Tag: SVN~753 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7b6fee9e7c5b977e255a29a4039b4e2307a8bc7d Try to load the stdlib before defining getline (on mac) so that size_t gets defined git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6973 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/simgrid_config.h.in b/include/simgrid_config.h.in index 69df80b9b6..b4267e11e4 100644 --- a/include/simgrid_config.h.in +++ b/include/simgrid_config.h.in @@ -22,6 +22,7 @@ /* Use that config to declare missing elements */ #ifdef SIMGRID_NEED_GETLINE +#include /* size_t */ XBT_PUBLIC(long) getline(char **lineptr, size_t * n, FILE * stream); #else #define _GNU_SOURCE