[dovecot-cvs] dovecot/src/plugins/quota quota-fs.c, 1.1, 1.2 quota-fs.h, 1.1, 1.2

cras at dovecot.org cras at dovecot.org
Sat Dec 24 00:38:27 EET 2005


Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv27223/src/plugins/quota

Modified Files:
	quota-fs.c quota-fs.h 
Log Message:
Fixed to work with struct dqblk.dqb_curspace also which is apparently the
new Linux-way to do it.



Index: quota-fs.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-fs.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- quota-fs.c	14 Dec 2005 21:34:01 -0000	1.1
+++ quota-fs.c	23 Dec 2005 22:38:25 -0000	1.2
@@ -14,6 +14,10 @@
 #include <unistd.h>
 #include <sys/stat.h>
 
+#ifdef HAVE_STRUCT_DQBLK_CURSPACE
+#  define dqb_curblocks dqb_curspace
+#endif
+
 #define MTAB_PATH "/etc/mtab"
 
 struct fs_quota {

Index: quota-fs.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-fs.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- quota-fs.h	14 Dec 2005 21:34:01 -0000	1.1
+++ quota-fs.h	23 Dec 2005 22:38:25 -0000	1.2
@@ -1,7 +1,10 @@
 #ifndef __QUOTA_FS_H
 #define __QUOTA_FS_H
 
-#define HAVE_FS_QUOTA
+#if defined (HAVE_STRUCT_DQBLK_CURBLOCKS) || \
+	defined (HAVE_STRUCT_DQBLK_CURSPACE)
+#  define HAVE_FS_QUOTA
+#endif
 
 #ifdef HAVE_SYS_QUOTA_H
 #  include <sys/quota.h> /* Linux */



More information about the dovecot-cvs mailing list