summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-27 04:30:20 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-27 04:30:20 +0000
commit23ec00cd5e3fbfbe56277f1a899ccafeb71352c0 (patch)
tree747012b989525a9a04971ea4c7580173aa92e879 /io.c
parentc9ec7f2b517b7601b2708a88134cff06818987c8 (diff)
downloadruby-23ec00cd5e3fbfbe56277f1a899ccafeb71352c0.tar.gz
ruby-23ec00cd5e3fbfbe56277f1a899ccafeb71352c0.tar.xz
ruby-23ec00cd5e3fbfbe56277f1a899ccafeb71352c0.zip
* 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
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 2 insertions, 0 deletions
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();