pkgsrc/security/tct/patches/patch-ag
ben 4c8d18d16a Make tct build and run on NetBSD 2.0 and bump PKGREVISION.
This does not add support for ffsv2 filesystems nor superblocks.
This addresses PR#28357.
2005-01-22 15:59:58 +00:00

31 lines
808 B
Text

$NetBSD: patch-ag,v 1.2 2005/01/22 15:59:58 ben Exp $
--- src/fstools/fs_tools.h.orig 2001-09-07 10:06:57.000000000 -0700
+++ src/fstools/fs_tools.h
@@ -203,6 +203,26 @@ extern int optind;
#endif
#endif
+#if defined(NETBSD1) || defined(NETBSD2)
+#define SUPPORTED
+#define HAVE_UFS_FFS
+#include <sys/vnode.h>
+#include <ufs/ufs/quota.h>
+#include <ufs/ufs/inode.h>
+#include <ufs/ufs/ufs_bswap.h>
+#include <ufs/ffs/fs.h>
+#define LSEEK lseek
+#define OFF_T off_t
+#define STRTOUL strtoul
+#define itod(fs,i) ino_to_fsba(fs,i)
+#define itoo(fs,i) ino_to_fsbo(fs,i)
+#define INOTIME(t) (t)
+#define DADDR_T daddr_t
+#define UFS_TYPE "ufs"
+#define DEF_FSTYPE UFS_TYPE
+#define INO_TO_CG ino_to_cg
+#endif
+
/*
* Catch-all.
*/