$NetBSD: patch-ag,v 1.1 2004/09/16 13:34:13 agc Exp $ --- src/common/OS/unix-os.c 2004/09/16 13:14:28 1.1 +++ src/common/OS/unix-os.c 2004/09/16 13:23:00 @@ -417,13 +417,22 @@ } #ifdef HAVE_SVR4_STATVFS + +# ifdef __NetBSD__ +# define BASETYPE f_fstypename +# define TYPE_LENGTH _VFS_NAMELEN +# else +# define BASETYPE f_basetype +# define TYPE_LENGTH FSTYPSZ +# endif + OC_bool os_is_local_path(const char *path) { struct statvfs sfs; statvfs(path, &sfs); - if (strncmp(sfs.f_basetype, "nfs", FSTYPSZ) == 0) + if (strncmp(sfs.BASETYPE, "nfs", TYPE_LENGTH) == 0) return FALSE; return TRUE; }