Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to load the stdlib before defining getline (on mac) so that size_t gets defined
[simgrid.git] / include / simgrid_config.h.in
index 69df80b..b4267e1 100644 (file)
@@ -22,6 +22,7 @@
 
 /* Use that config to declare missing elements */
 #ifdef SIMGRID_NEED_GETLINE
+#include <stdlib.h> /* size_t */
 XBT_PUBLIC(long) getline(char **lineptr, size_t * n, FILE * stream);
 #else
 #define _GNU_SOURCE