Mercurial > dovecot > original-hg > dovecot-1.2
diff src/plugins/quota/quota-fs.c @ 4565:a54558861acc HEAD
Check for XFS quota also from xfs/xqm.h
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 11 Aug 2006 01:03:22 +0300 |
parents | ef71b2fdd433 |
children | bdfc03178263 |
line wrap: on
line diff
--- a/src/plugins/quota/quota-fs.c Fri Aug 11 00:59:40 2006 +0300 +++ b/src/plugins/quota/quota-fs.c Fri Aug 11 01:03:22 2006 +0300 @@ -18,6 +18,10 @@ #include <sys/stat.h> #ifdef HAVE_LINUX_DQBLK_XFS_H # include <linux/dqblk_xfs.h> +# define HAVE_XFS_QUOTA +#elif defined (HAVE_XFS_XQM_H) +# include <xfs/xqm.h> /* CentOS 4.x at least uses this */ +# define HAVE_XFS_QUOTA #endif #ifndef DEV_BSIZE @@ -203,7 +207,7 @@ #if defined (HAVE_QUOTACTL) && defined(HAVE_SYS_QUOTA_H) /* Linux */ -#ifdef HAVE_LINUX_DQBLK_XFS_H +#ifdef HAVE_XFS_QUOTA if (strcmp(root->mount->type, "xfs") == 0) { /* XFS */ struct fs_disk_quota xdqblk;