summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
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 adcb0eb9d0..6b1505da04 100644
--- a/io.c
+++ b/io.c
@@ -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();