summaryrefslogtreecommitdiff
path: root/sysutils/strace/patches/patch-bc
blob: 73df1e71097eebe4a1d9547e1632c16aed7cecbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-bc,v 1.3 2011/09/03 14:44:03 christos Exp $

--- quota.c.orig	2006-10-16 03:30:53.000000000 +0300
+++ quota.c	2011-08-30 12:49:51.000000000 +0300
@@ -687,14 +687,20 @@
 
 #endif /* Linux */
 
-#if defined(SUNOS4) || defined(FREEBSD)
+#if defined(SUNOS4) || defined(ALLBSD)
 
 #ifdef SUNOS4
 #include <ufs/quota.h>
 #endif
 
-#ifdef FREEBSD
+#ifdef ALLBSD
 #include <ufs/ufs/quota.h>
+#ifdef __NetBSD__
+#include <sys/param.h>
+#if __NetBSD_Version__ >= 599004700
+#include <ufs/ufs/quota1.h>
+#endif
+#endif
 #endif
 
 static const struct xlat quotacmds[] = {
@@ -723,7 +726,7 @@
 		tprintf(", ");
 		printstr(tcp, tcp->u_arg[1], -1);
 #endif
-#ifdef FREEBSD
+#ifdef ALLBSD
 		printpath(tcp, tcp->u_arg[0]);
 		tprintf(", ");
 		printxval(quotacmds, tcp->u_arg[1], "Q_???");
@@ -733,4 +736,4 @@
 	return 0;
 }
 
-#endif /* SUNOS4 || FREEBSD */
+#endif /* SUNOS4 || ALLBSD */