Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / p5-Quota / patches / patch-ab
blob52593af121354c06180259729e7ec1e0dad32b09
1 $NetBSD: patch-ab$
3 Extend hints/bsd.h to define NETBSD_LIBQUOTA and include <quota.h> on
4 NetBSD >= 5.99.59.
6 --- hints/bsd.h.orig    2007-11-24 14:49:43.000000000 +0100
7 +++ hints/bsd.h 2012-05-14 15:52:47.000000000 +0200
8 @@ -9,6 +9,7 @@
9   *           and Jon Schewe <schewe@tcfreenet.org>
10   *   NetBSD mods and merge of *BSD-related hints provided by
11   *           Jaromir Dolecek <jdolecek@NetBSD.org>
12 + *   NetBSD libquota mods by David Holland <dholland@netbsd.org>
13   */
15  /*   See hints/none.h for a complete list of options with explanations */
16 @@ -16,7 +17,19 @@
17  #include <sys/param.h>
18  #include <sys/mount.h>
19  #include <fstab.h>
21 +#if defined(__NetBSD__) && __NetBSD_Version__ >= 599004800 && __NetBSD_Version__ < 599005900
22 +#error "NetBSD 5.99 proplib-based quotas not supported"
23 +#endif
25 +#if defined(__NetBSD__) && (__NetBSD_Version__ >= 599005900) /* NetBSD 5.99.59 */
26 +#include <quota.h>
27 +/* struct qblk needed for the way the XS handles NFS quota */
28 +#include <ufs/ufs/quota1.h>
29 +#define NETBSD_LIBQUOTA
30 +#else
31  #include <ufs/ufs/quota.h>
32 +#endif
34  #if defined(__NetBSD__) && (__NetBSD_Version__ >= 299000900) /* NetBSD 2.99.9 */
35  /* NetBSD 3.0 has no statfs anymore */