$NetBSD: patch-af,v 1.14 2009/05/17 20:40:46 seb Exp $ --- dialects/n+obsd/dlsof.h.orig 2006-03-28 21:54:15.000000000 +0000 +++ dialects/n+obsd/dlsof.h @@ -95,6 +95,10 @@ struct uio; /* dummy for function protot # endif /* (defined(OPENBSDV) && OPENBSDV<3030) || (defined(NETBSDV) && __NetBSD_Version__>=106060000) */ +# if defined(NETBSDV) && NETBSDV>=1003000 +#define sockproto NETBSD_sockproto +# endif /* defined(NETBSDV) && NETBSDV>=1003000 */ + #include # if (defined(OPENBSDV) && OPENBSDV>=3030) \ @@ -106,10 +110,6 @@ struct uio; /* dummy for function protot #include #include -# if defined(NETBSDV) && NETBSDV>=1003000 -#define sockproto NETBSD_sockproto -# endif /* defined(NETBSDV) && NETBSDV>=1003000 */ - #include # if defined(HASMSDOSFS) @@ -161,6 +161,7 @@ struct nameidata; /* to satisfy a functi #include #include #include +#include #include #include #include @@ -170,7 +171,6 @@ struct nameidata; /* to satisfy a functi #include # endif /* defined(HASIPv6) && defined(NETBSDV) && !defined(HASINRIAIPv6) */ -#include #include #include #include @@ -264,6 +264,9 @@ struct sockproto { #undef KERNEL #include +# if defined(HASTMPFS) +#include +# endif /* defined(HASTMPFS) */ # if defined(HASNFSPROTO) #include @@ -489,7 +492,12 @@ extern KA_T Kpa; struct l_vfs { KA_T addr; /* kernel address */ fsid_t fsid; /* file system ID */ +#if defined(NETBSDV) && __NetBSD_Version__ >= 499002500 + /* MFSNAMELEN was removed from the kernel source after 4.99.24 */ + char type[sizeof(((struct statvfs *)NULL)->f_fstypename)]; /* type of file system */ +#else char type[MFSNAMELEN]; /* type of file system */ +#endif char *dir; /* mounted directory */ char *fsname; /* file system name */ struct l_vfs *next; /* forward link */ @@ -581,4 +589,12 @@ struct sfile { # endif /* defined(HASNCVPID) */ # endif /* defined(HASNCACHE) */ +#if defined(VV_ROOT) /* NetBSD >= 4.99.33 */ +#define VNODE_VFLAG v_vflag +#define NCACHE_VROOT VV_ROOT +#else +#define VNODE_VFLAG v_flag +#define NCACHE_VROOT VROOT +#endif /* VV_ROOT */ + #endif /* NETBSD_LSOF_H */