r10163: try to fix the build on fedora 4, when --with-quota is not used
authorStefan Metzmacher <metze@samba.org>
Mon, 12 Sep 2005 09:38:22 +0000 (09:38 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:03:35 +0000 (11:03 -0500)
(to actually fix the quotas, more work is needed)

metze
(This used to be commit ff82c247c5bf4093723e4ce702a4afe38257a31b)

source3/lib/sysquotas_4A.c
source3/lib/sysquotas_linux.c

index 5596481bd29009594c815d55cf2a091bfccb182e..99b1a13e99710129b1add1b5eecb7f674c573651 100644 (file)
 #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 */
index 4c024b04cc4e8c20116cede32105ac68cc0703d8..28a86196e2b95ac2208af7bc2e1f5214a13ece01 100644 (file)
 #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"