summaryrefslogtreecommitdiff
path: root/lang/STk/patches/patch-al
diff options
context:
space:
mode:
Diffstat (limited to 'lang/STk/patches/patch-al')
-rw-r--r--lang/STk/patches/patch-al14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/STk/patches/patch-al b/lang/STk/patches/patch-al
new file mode 100644
index 00000000000..a4936381275
--- /dev/null
+++ b/lang/STk/patches/patch-al
@@ -0,0 +1,14 @@
+$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