mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-24 04:03:34 -04:00
17 lines
512 B
Plaintext
17 lines
512 B
Plaintext
$NetBSD: patch-ay,v 1.7 2015/12/29 23:34:48 dholland Exp $
|
|
|
|
Support Dragonfly.
|
|
|
|
--- 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);
|