pkgsrc/sysutils/strace/patches/patch-bc

40 lines
821 B
Text
Raw Normal View History

2011-08-30 12:43:11 +02:00
$NetBSD: patch-bc,v 1.2 2011/08/30 10:43:11 christos Exp $
2011-08-30 12:43:11 +02:00
--- quota.c.orig 2006-10-16 03:30:53.000000000 +0300
+++ quota.c 2011-08-30 12:49:51.000000000 +0300
@@ -687,14 +687,17 @@
#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>
2011-08-30 12:43:11 +02:00
+#ifdef __NetBSD__
+#include <ufs/ufs/quota1.h>
+#endif
#endif
2011-08-30 12:43:11 +02:00
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_???");
2011-08-30 12:43:11 +02:00
@@ -733,4 +736,4 @@
return 0;
}
-#endif /* SUNOS4 || FREEBSD */
+#endif /* SUNOS4 || ALLBSD */