]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/nfsquota.c
Support for using $u username variable in AFP volume definitions
[netatalk.git] / etc / afpd / nfsquota.c
index 90b84c21e5cf1a16dd7de8724130c1b1dca04f3b..50440ab42b6d2f38677dad27c86a88ae8299b218 100644 (file)
@@ -1,5 +1,4 @@
 /*
- * $Id: nfsquota.c,v 1.13 2009-10-13 22:55:37 didg Exp $
  *
  * parts of this are lifted from the bsd quota program and are
  * therefore under the following copyright:
@@ -18,7 +17,7 @@
 #include "config.h"
 #endif /* HAVE_CONFIG_H */
 
-#ifndef NO_QUOTA_SUPPORT
+#if !defined(NO_QUOTA_SUPPORT) && !defined(HAVE_LIBQUOTA)
 #include <stdio.h>
 #include <string.h>
 #include <sys/types.h>
@@ -172,4 +171,4 @@ int getnfsquota(struct vol *vol, const int uid, const uint32_t bsize,
     *hostpath = ':';
     return AFPERR_PARAM;
 }
-#endif /* ! NO_QUOTA_SUPPORT */
+#endif /* ! NO_QUOTA_SUPPORT && !HAVE_LIBQUOTA */