$NetBSD: patch-au,v 1.5 2011/03/26 18:45:53 bouyer Exp $

--- etc/afpd/unix.h.orig	2011-03-24 16:40:15.000000000 +0100
+++ etc/afpd/unix.h	2011-03-24 16:43:15.000000000 +0100
@@ -59,6 +59,7 @@
 
 
 #ifndef NO_QUOTA_SUPPORT
+#if !defined(HAVE_LIBQUOTA)
 
 #if !(defined(__svr4__) || defined(HAVE_DQB_BTIMELIMIT))
 #define dqb_btimelimit  dqb_btime
@@ -211,6 +212,7 @@
 extern int getnfsquota (struct vol *, const int, const u_int32_t,
                                 struct dqblk *);
 
+#endif /* ! HAVE_LIBQUOTA */
 extern int uquota_getvolspace (struct vol *, VolSpace *, VolSpace *,
                                        const u_int32_t);
 #endif /* NO_QUOTA_SUPPORT */
