3f3c24790a
Christos (patch-ae and patch-af). Fix PR 36680 - Define NETBSD_SYS in the pkgsrc Makefile so it works if NETBSDSRCDIR is not pointing to a default location and thus some featues, like ptyfs support were disabled - Update the line numbers in patch-aa - Add tmpfs support (patch-ad, patch-af and patch-ag) - Update the NetBSD versions in Configure otherwise NETBSDV would fall back to 1006000 and so at least one feature was not found, the PFSfd procfs support (patch-ag) - Bump pkg revision for new features (normaly I wouldn't have bumped the version if it were only to fix a -current compile, because the version also includes the kernel version)
33 lines
878 B
Text
33 lines
878 B
Text
$NetBSD: patch-ae,v 1.11 2007/08/14 19:59:18 veego Exp $
|
|
|
|
--- dialects/n+obsd/dmnt.c.orig 2005-08-08 21:53:31.000000000 +0200
|
|
+++ dialects/n+obsd/dmnt.c 2007-08-11 14:43:05.000000000 +0200
|
|
@@ -45,6 +45,15 @@
|
|
#include <sys/statvfs.h>
|
|
#endif /* defined(NETBSDV) && defined(HASSTATVFS) */
|
|
|
|
+#if defined(NETBSDV)
|
|
+#include <sys/param.h>
|
|
+
|
|
+#if __NetBSD_Version__ >= 399002400
|
|
+#include <sys/types.h>
|
|
+#include <sys/mount.h>
|
|
+#endif
|
|
+#endif
|
|
+
|
|
#include "lsof.h"
|
|
|
|
|
|
@@ -94,7 +103,12 @@
|
|
for (; n; n--, mb++) {
|
|
if (mb->f_fstypename[0] == '\0')
|
|
continue;
|
|
+#if defined(NETBSDV) && __NetBSD_Version__ >= 499002500
|
|
+ /* MFSNAMELEN was removed from the kernel source after 4.99.24 */
|
|
+ mb->f_fstypename[sizeof(mb->f_fstypename) - 1] = '\0';
|
|
+#else
|
|
mb->f_fstypename[MFSNAMELEN - 1] = '\0';
|
|
+#endif
|
|
/*
|
|
* Interpolate a possible symbolic directory link.
|
|
*/
|