From: mquinson Date: Fri, 16 Mar 2007 14:57:12 +0000 (+0000) Subject: Only declare getline portability cruft if it is needed (it's not used so far), it... X-Git-Tag: v3.3~2054 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f3ba288e92216e2f6d64cabfbee5fd6b3496c99f Only declare getline portability cruft if it is needed (it's not used so far), it can be ignored for release sake git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3305 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/getline.c b/src/xbt/getline.c index dfda65059b..f228d37a97 100644 --- a/src/xbt/getline.c +++ b/src/xbt/getline.c @@ -22,6 +22,7 @@ #include "xbt/sysdep.h" /* headers of this function */ #include "portable.h" +#ifndef HAVE_GETLINE ssize_t getline(char **buf, size_t *n, FILE *stream) { int i, ch; @@ -56,4 +57,4 @@ ssize_t getline(char **buf, size_t *n, FILE *stream) { return (ssize_t)i; } - +#endif /* HAVE_GETLINE */