Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Mac does not find the prototype of getline
[simgrid.git] / src / xbt / xbt_str.c
index 02ee5ab..90725f8 100644 (file)
@@ -395,6 +395,9 @@ char *xbt_str_join(xbt_dynar_t dyn, const char*sep) {
 }
    
 #if !defined(HAVE_GETLINE) || defined(DOXYGEN)
+/* prototype here, just in case */
+long getline(char **buf, size_t *n, FILE *stream);
+
 /** @brief Get a single line from the stream (reimplementation of the GNU getline)
  * 
  * This is a redefinition of the GNU getline function, used on platforms where it does not exists.