pkgsrc/security/cfs/patches/patch-ag
abs f72dc9cd65 Catch some NetBSD statvfs() checks phrased alternatively as > 200030000
rather than >= 200040000 and one enterprisingly hidden as > 200050000
2005-09-08 22:37:53 +00:00

17 lines
390 B
Text

$NetBSD: patch-ag,v 1.3 2005/09/08 22:37:54 abs Exp $
--- cattach.c.orig 2004-07-25 21:55:56.000000000 +1000
+++ cattach.c
@@ -81,8 +81,12 @@ main(argc,argv)
struct fs_data sfb;
#define f_blocks fd_req.btot
#else
+#if defined(__NetBSD_Version__) && __NetBSD_Version__ >= 299000900
+ struct statvfs sfb;
+#else
struct statfs sfb;
#endif
+#endif
char *flg;
int ciph;
FILE *fp;