pkgsrc/sysutils/gnome-vfs2/patches/patch-ai
jmmv 7a8ccc0bcf Properly detect statvfs(2) under NetBSD so that gnome-vfs can determine the
file system type in which a given file lives.  This is just a hack to
work-around a somewhat serious portability problem in the configure script
and the code, which is currently so clumsy that it is difficult to fix it
properly through patches.

This solves, among other possible problems, the generation of image previews
in Nautilus because gnome-vfs thought the files were not local (as it could
not determine where they lived).

Bump PKGREVISION to 2.
2006-01-01 17:31:53 +00:00

17 lines
433 B
Text

$NetBSD: patch-ai,v 1.11 2006/01/01 17:31:53 jmmv Exp $
--- modules/fstype.c.orig 2004-08-12 11:08:56.000000000 +0200
+++ modules/fstype.c
@@ -349,8 +349,12 @@ filesystem_type_uncached (char *path, ch
fstype_internal_error (1, errno, "%s", path);
}
else
+#if defined(__NetBSD__)
+ type = fss.f_fstypename;
+#else
type = fss.f_basetype;
#endif
+#endif
#ifdef FSTYPE_STATFS /* 4.4BSD. */
struct statfs fss;