diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-09 22:03:37 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-09 22:03:37 +0000 |
commit | 517d9780b4120fe213cb059d6a2ec8a194ce0ff1 (patch) | |
tree | dc5e643eaaaa1c73dfde14225a7929718bb89dc4 /lang/rexx-imc/patches | |
parent | 09f1cb1976db1ea53abe0ec8932323b636e9df3b (diff) | |
download | pkgsrc-517d9780b4120fe213cb059d6a2ec8a194ce0ff1.tar.gz |
Be a bit nasty and fix this on DragonFly by looking into the "public"
part of FILE as well.
Diffstat (limited to 'lang/rexx-imc/patches')
-rw-r--r-- | lang/rexx-imc/patches/patch-ab | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lang/rexx-imc/patches/patch-ab b/lang/rexx-imc/patches/patch-ab index e284b076f25..16c7e7ce992 100644 --- a/lang/rexx-imc/patches/patch-ab +++ b/lang/rexx-imc/patches/patch-ab @@ -1,12 +1,15 @@ -$NetBSD: patch-ab,v 1.1.1.1 2002/09/02 16:43:03 agc Exp $ +$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 -@@ -41,7 +41,7 @@ +@@ -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) |