pkgsrc/lang/STk/patches/patch-al

14 lines
486 B
Text

$NetBSD: patch-al,v 1.1 2006/01/11 17:43:34 joerg Exp $
--- Src/io.c.orig 2006-01-11 17:16:11.000000000 +0000
+++ Src/io.c
@@ -67,6 +67,9 @@
# define READ_DATA_PENDING(fp) (max(0,(fp)->_egptr - (fp)->_gptr))
# endif
#endif
+#if !defined(READ_DATA_PENDING) && defined(__DragonFly__)
+# define READ_DATA_PENDING(fp) (max(0,((struct __FILE_public *)(fp))->_r))
+#endif
#if (!defined (READ_DATA_PENDING)) && defined __SLBF
# define READ_DATA_PENDING(fp) (max(0,fp->_r))
#endif