From f3ba288e92216e2f6d64cabfbee5fd6b3496c99f Mon Sep 17 00:00:00 2001 From: mquinson Date: Fri, 16 Mar 2007 14:57:12 +0000 Subject: [PATCH] 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 --- src/xbt/getline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.20.1