From 656321ddd450a4bbf04cf631d31d104cca5cff5d Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 20 Jul 2008 09:57:52 +0000 Subject: [PATCH] * lib-stream.c: since __srefill is far more powerful than __srget, we only reimplement the former on OS X and completely ignore the latter. --- src/lib-stream.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib-stream.c b/src/lib-stream.c index f2b823d..cf51fab 100644 --- a/src/lib-stream.c +++ b/src/lib-stream.c @@ -55,7 +55,7 @@ int NEW(__srefill)(FILE *fp); int NEW(__filbuf)(FILE *fp); #endif -#if defined HAVE___SRGET +#if defined HAVE___SRGET && !defined HAVE___SREFILL int NEW(__srget)(FILE *fp); #endif @@ -142,7 +142,7 @@ static char * (*ORIG(fgetln)) (FILE *stream, size_t *len); #if defined HAVE___SREFILL int (*ORIG(__srefill)) (FILE *fp); #endif -#if defined HAVE___SRGET +#if defined HAVE___SRGET && !defined HAVE___SREFILL int (*ORIG(__srget)) (FILE *fp); #endif @@ -799,7 +799,7 @@ int NEW(__srefill)(FILE *fp) } #endif -#if defined HAVE___SRGET +#if defined HAVE___SRGET && !defined HAVE___SREFILL int NEW(__srget)(FILE *fp) { int ret; REFILL(__srget, 1); return ret;