14 lines
489 B
Text
14 lines
489 B
Text
$NetBSD: patch-ay,v 1.6 2006/03/19 15:57:36 joerg Exp $
|
|
|
|
--- ipl/cfuncs/fpoll.c.orig 2006-03-19 15:06:16.000000000 +0000
|
|
+++ ipl/cfuncs/fpoll.c
|
|
@@ -65,6 +65,9 @@ int fpoll(int argc, descriptor *argv) /*
|
|
#elif defined(__GLIBC__) /* old GCC library */
|
|
if (f->__bufp < f->__get_limit)
|
|
RetArg(1);
|
|
+#elif defined(__DragonFly__)
|
|
+ if (((struct __FILE_public *)f)->_r > 0)
|
|
+ RetArg(1);
|
|
#elif defined(_FSTDIO) /* new BSD library */
|
|
if (f->_r > 0)
|
|
RetArg(1);
|