diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-27 04:30:20 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-27 04:30:20 +0000 |
commit | a08335cc90e1e6d559b0ead207c42babe424ec57 (patch) | |
tree | abcd69737200c0b681567ceda0d6263882c10cbe /io.c | |
parent | a01e4cbdb10e7295c70d5070e5c96355f18d26c1 (diff) | |
download | ruby-a08335cc90e1e6d559b0ead207c42babe424ec57.tar.gz |
* io.c (READ_DATA_PENDING): uClibc support.
* random.c (rand_init): ditto.
* ext/socket/{addinfo.h,getaddrinfo.c} (gai_strerror): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -111,6 +111,8 @@ static VALUE lineno; # define READ_DATA_PENDING(fp) ((fp)->FILE_COUNT > 0) #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(); |