Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix the prototype of getline on platforms where we need to redefine it (non-GNU)
[simgrid.git] / src / xbt / getline.c
index f228d37..ecf94b3 100644 (file)
@@ -23,7 +23,7 @@
 #include "portable.h"
 
 #ifndef HAVE_GETLINE
 #include "portable.h"
 
 #ifndef HAVE_GETLINE
-ssize_t getline(char **buf, size_t *n, FILE *stream) {
+long getline(char **buf, size_t *n, FILE *stream) {
    
    int i, ch;
    
    
    int i, ch;