Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to load the stdio before defining getline (on mac) so that FILE gets defined
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 23 Dec 2009 17:08:12 +0000 (17:08 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 23 Dec 2009 17:08:12 +0000 (17:08 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6974 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/simgrid_config.h.in

index b4267e1..ca6c550 100644 (file)
@@ -23,6 +23,7 @@
 /* Use that config to declare missing elements */
 #ifdef SIMGRID_NEED_GETLINE
 #include <stdlib.h> /* size_t */
 /* Use that config to declare missing elements */
 #ifdef SIMGRID_NEED_GETLINE
 #include <stdlib.h> /* size_t */
+#include <stdio.h>  /* FILE*  */
 XBT_PUBLIC(long) getline(char **lineptr, size_t * n, FILE * stream);
 #else
 #define _GNU_SOURCE
 XBT_PUBLIC(long) getline(char **lineptr, size_t * n, FILE * stream);
 #else
 #define _GNU_SOURCE