--- gnome-vfs-2.4.1/libgnomevfs/gnome-vfs-utils.c	2003-11-17 19:58:51.000000000 +0200
+++ gnome-vfs-2.4.1/libgnomevfs/gnome-vfs-utils.c	2003-11-17 19:59:16.000000000 +0200
@@ -810,6 +810,7 @@
 
 	/* ncpfs does not know the amount of available and free space */
 	if (statfs_buffer.f_bavail == 0 && statfs_buffer.f_bfree == 0) {
+#ifndef __sun
 		/* statvfs does not contain an f_type field, we try again
 		 * with statfs.
 		 */
@@ -822,7 +823,11 @@
 		}
 		
 		/* linux/ncp_fs.h: NCP_SUPER_MAGIC == 0x564c */
-		if (statfs_buffer2.f_type == 0x564c) {
+		if (statfs_buffer2.f_type == 0x564c)
+#else
+		if (strcmp(statfs_buffer.f_basetype, "ncpfs") == 0)
+#endif
+		{
 			return GNOME_VFS_ERROR_NOT_SUPPORTED;
 		}
 	}
