From e80d6cba6180e3bfa5f61b7f142b865dd445eb39 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 12 Sep 2005 09:38:22 +0000 Subject: r10163: try to fix the build on fedora 4, when --with-quota is not used (to actually fix the quotas, more work is needed) metze (This used to be commit ff82c247c5bf4093723e4ce702a4afe38257a31b) --- source3/lib/sysquotas_4A.c | 6 ++++++ source3/lib/sysquotas_linux.c | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/sysquotas_4A.c b/source3/lib/sysquotas_4A.c index 5596481bd2..99b1a13e99 100644 --- a/source3/lib/sysquotas_4A.c +++ b/source3/lib/sysquotas_4A.c @@ -24,6 +24,12 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_QUOTA +#ifndef HAVE_SYS_QUOTAS +#ifdef HAVE_QUOTACTL_4A +#undef HAVE_QUOTACTL_4A +#endif +#endif + #ifdef HAVE_QUOTACTL_4A /* long quotactl(int cmd, char *special, qid_t id, caddr_t addr) */ /* this is used by: HPUX,IRIX */ diff --git a/source3/lib/sysquotas_linux.c b/source3/lib/sysquotas_linux.c index 4c024b04cc..28a86196e2 100644 --- a/source3/lib/sysquotas_linux.c +++ b/source3/lib/sysquotas_linux.c @@ -24,6 +24,12 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_QUOTA +#ifndef HAVE_SYS_QUOTAS +#ifdef HAVE_QUOTACTL_LINUX +#undef HAVE_QUOTACTL_LINUX +#endif +#endif + #ifdef HAVE_QUOTACTL_LINUX #include "samba_linux_quota.h" -- cgit