summaryrefslogtreecommitdiff
path: root/lang/rexx-imc/patches/patch-ab
blob: 16c7e7ce992975e4df1fa3f897a8ea67685415dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ab,v 1.2 2006/01/09 22:03:37 joerg 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
@@ -40,8 +40,10 @@
 #ifndef _CNT
 # ifdef linux
 #  define _CNT(fp) ((fp)->_IO_read_end - (fp)->_IO_read_ptr)
+# elif defined(__DragonFly__)
+#   define _CNT(fp) (((struct __FILE_public *)fp)->_r)
 # else
-#  ifdef __FreeBSD__
+#  if (defined(BSD) && BSD >= 199306)
 #   define _CNT(fp) ((fp)->_r)
 #  else
 #   define _CNT(fp) ((fp)->_cnt)