here's a small patch to makesure we fallback to <xfs/xqm.h> if <linux/xqm.h> doesn't exist (e.g. in SuSE 8.1).
metze
-----------------------------------------------------------------------------
Stefan "metze" Metzmacher <[EMAIL PROTECTED]>
diff -Npur --exclude=CVS --exclude=*.bak --exclude=*.o --exclude=*.po --exclude=.#* 3_0/source/configure.in samba3_0-puc/source/configure.in --- 3_0/source/configure.in Sun Nov 10 01:14:14 2002 +++ samba3_0-puc/source/configure.in Sun Nov 10 02:49:40 2002 @@ -462,6 +462,7 @@ AC_CHECK_HEADERS(sys/fs/vx_quota.h) # For quotas on Linux XFS filesystems AC_CHECK_HEADERS(linux/xqm.h) +AC_CHECK_HEADERS(xfs/xqm.h) AC_CHECK_SIZEOF(int,cross) AC_CHECK_SIZEOF(long,cross) diff -Npur --exclude=CVS --exclude=*.bak --exclude=*.o --exclude=*.po --exclude=.#* 3_0/source/include/config.h.in samba3_0-puc/source/include/config.h.in --- 3_0/source/include/config.h.in Sun Nov 10 01:14:14 2002 +++ samba3_0-puc/source/include/config.h.in Sun Nov 10 02:48:28 2002 @@ -373,6 +373,9 @@ /* Define to 1 if you have the <linux/xqm.h> header file. */ #undef HAVE_LINUX_XQM_H +/* Define to 1 if you have the <xfs/xqm.h> header file. */ +#undef HAVE_XFS_XQM_H + /* Define to 1 if you have the `llseek' function. */ #undef HAVE_LLSEEK diff -Npur --exclude=CVS --exclude=*.bak --exclude=*.o --exclude=*.po --exclude=.#* 3_0/source/smbd/quotas.c samba3_0-puc/source/smbd/quotas.c --- 3_0/source/smbd/quotas.c Wed Jan 30 07:08:39 2002 +++ samba3_0-puc/source/smbd/quotas.c Sun Nov 10 02:26:35 2002 @@ -56,6 +56,11 @@ BOOL disk_quotas_vxfs(const pstring name #include <linux/quota.h> #ifdef HAVE_LINUX_XQM_H #include <linux/xqm.h> +#else +#ifdef HAVE_XFS_XQM_H +#include <xfs/xqm.h> +#define HAVE_LINUX_XQM_H +#endif #endif #include <mntent.h>
