summaryrefslogtreecommitdiff
path: root/sysutils/ruby-quota/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/ruby-quota/patches/patch-ab')
-rw-r--r--sysutils/ruby-quota/patches/patch-ab21
1 files changed, 17 insertions, 4 deletions
diff --git a/sysutils/ruby-quota/patches/patch-ab b/sysutils/ruby-quota/patches/patch-ab
index 9af9864cfb7..ad45382b299 100644
--- a/sysutils/ruby-quota/patches/patch-ab
+++ b/sysutils/ruby-quota/patches/patch-ab
@@ -1,8 +1,21 @@
-$NetBSD: patch-ab,v 1.3 2006/01/25 15:48:50 joerg Exp $
+$NetBSD: patch-ab,v 1.4 2006/09/24 15:40:38 joerg Exp $
---- quota.c.orig 2002-03-30 23:59:12.000000000 +0900
+--- quota.c.orig 2002-03-30 14:59:12.000000000 +0000
+++ quota.c
-@@ -159,7 +159,11 @@ rb_quotactl(int cmd, char *dev, VALUE vu
+@@ -51,6 +51,12 @@
+ #if defined(SYS_UCRED_H)
+ # include <sys/ucred.h> /* required by NetBSD,FreeBSD */
+ #endif
++#if defined(__DragonFly__)
++# include <sys/param.h>
++# if __DragonFly_version >= 160000
++# define dqblk ufs_dqblk
++# endif
++#endif
+ #endif
+
+ static VALUE rb_mQuota;
+@@ -159,7 +165,11 @@ rb_quotactl(int cmd, char *dev, VALUE vu
char *path;
int is_gid;
uid_t uid;
@@ -14,7 +27,7 @@ $NetBSD: patch-ab,v 1.3 2006/01/25 15:48:50 joerg Exp $
int i, count, ret;
buff = 0;
-@@ -187,12 +191,16 @@ rb_quotactl(int cmd, char *dev, VALUE vu
+@@ -187,12 +197,16 @@ rb_quotactl(int cmd, char *dev, VALUE vu
static int
rb_quotactl(int cmd, char *dev, VALUE vuid, caddr_t addr)
{