summaryrefslogtreecommitdiff
path: root/lang/rexx-imc/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'lang/rexx-imc/patches/patch-ab')
-rw-r--r--lang/rexx-imc/patches/patch-ab15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/rexx-imc/patches/patch-ab b/lang/rexx-imc/patches/patch-ab
new file mode 100644
index 00000000000..e284b076f25
--- /dev/null
+++ b/lang/rexx-imc/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/09/02 16:43:03 agc Exp $
+
+Generalise for all *BSD (well, anything with Torek stdio, really)
+
+--- rxfn.c 2002/09/02 08:50:31 1.1
++++ rxfn.c 2002/09/02 08:51:26
+@@ -41,7 +41,7 @@
+ # ifdef linux
+ # define _CNT(fp) ((fp)->_IO_read_end - (fp)->_IO_read_ptr)
+ # else
+-# ifdef __FreeBSD__
++# if (defined(BSD) && BSD >= 199306)
+ # define _CNT(fp) ((fp)->_r)
+ # else
+ # define _CNT(fp) ((fp)->_cnt)