From 23ec00cd5e3fbfbe56277f1a899ccafeb71352c0 Mon Sep 17 00:00:00 2001 From: eban Date: Wed, 27 Feb 2002 04:30:20 +0000 Subject: * io.c (READ_DATA_PENDING): uClibc support. * random.c (rand_init): ditto. * ext/socket/{addinfo.h,getaddrinfo.c} (gai_strerror): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'io.c') diff --git a/io.c b/io.c index 6829efff1..47243563a 100644 --- a/io.c +++ b/io.c @@ -119,6 +119,8 @@ static VALUE lineno; # define READ_DATA_PENDING_COUNT(fp) ((fp)->FILE_COUNT) #elif defined(__BEOS__) # define READ_DATA_PENDING(fp) (fp->_state._eof == 0) +#elif defined(__UCLIBC__) +# define READ_DATA_PENDING(fp) ((fp)->bufpos < (fp)->bufend) #else /* requires systems own version of the ReadDataPending() */ extern int ReadDataPending(); -- cgit