$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 +#include +#include +#include +#include +#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. */