summaryrefslogtreecommitdiff
path: root/source3/lib/sysquotas_xfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/sysquotas_xfs.c')
-rw-r--r--source3/lib/sysquotas_xfs.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/source3/lib/sysquotas_xfs.c b/source3/lib/sysquotas_xfs.c
index 1e438e9a6d..cf77eace97 100644
--- a/source3/lib/sysquotas_xfs.c
+++ b/source3/lib/sysquotas_xfs.c
@@ -23,23 +23,20 @@
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_QUOTA
-#ifndef HAVE_SYS_QUOTAS
-#ifdef HAVE_XFS_QUOTAS
-#undef HAVE_XFS_QUOTAS
-#endif
+#if defined(HAVE_SYS_QUOTAS) && defined(HAVE_XFS_QUOTAS)
+
+#ifdef HAVE_SYS_QUOTA_H
+#include <sys/quota.h>
#endif
-#ifdef HAVE_XFS_QUOTAS
+/* this one should actually come from glibc: */
+/* #include "samba_linux_quota.h" */
-#ifdef HAVE_LINUX_XFS_QUOTAS
-#include "samba_linux_quota.h"
-#ifdef HAVE_LINUX_DQBLK_XFS_H
-#include <linux/dqblk_xfs.h>
+#ifdef HAVE_XFS_XQM_H
+#include <xfs/xqm.h>
#endif
+
#define HAVE_GROUP_QUOTA
-#else /* IRIX */
-#include <sys/quota.h>
-#endif
/* on IRIX */
#ifndef Q_XQUOTAON