Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / strace / patches / patch-bc
blob3d6bcbc5514f406d31b149abb09ff0de21ac6258
1 $NetBSD: patch-bc,v 1.2 2011/08/30 10:43:11 christos Exp $
3 --- quota.c.orig        2006-10-16 03:30:53.000000000 +0300
4 +++ quota.c     2011-08-30 12:49:51.000000000 +0300
5 @@ -687,14 +687,20 @@
6  
7  #endif /* Linux */
8  
9 -#if defined(SUNOS4) || defined(FREEBSD)
10 +#if defined(SUNOS4) || defined(ALLBSD)
12  #ifdef SUNOS4
13  #include <ufs/quota.h>
14  #endif
16 -#ifdef FREEBSD
17 +#ifdef ALLBSD
18  #include <ufs/ufs/quota.h>
19 +#ifdef __NetBSD__
20 +#include <sys/param.h>
21 +#if __NetBSD_Version__ >= 599004700
22 +#include <ufs/ufs/quota1.h>
23 +#endif
24 +#endif
25  #endif
27  static const struct xlat quotacmds[] = {
28 @@ -723,7 +726,7 @@
29                 tprintf(", ");
30                 printstr(tcp, tcp->u_arg[1], -1);
31  #endif
32 -#ifdef FREEBSD
33 +#ifdef ALLBSD
34                 printpath(tcp, tcp->u_arg[0]);
35                 tprintf(", ");
36                 printxval(quotacmds, tcp->u_arg[1], "Q_???");
37 @@ -733,4 +736,4 @@
38         return 0;
39  }
41 -#endif /* SUNOS4 || FREEBSD */
42 +#endif /* SUNOS4 || ALLBSD */