Index: gnome-vfs/libgnomevfs/gnome-vfs-utils.c
===================================================================
RCS file: /cvs/GNOME-RE/gnome-vfs/libgnomevfs/gnome-vfs-utils.c,v
retrieving revision 1.74
diff -u -r1.74 gnome-vfs-utils.c
--- gnome-vfs/libgnomevfs/gnome-vfs-utils.c	2003/11/15 15:32:28	1.74
+++ gnome-vfs/libgnomevfs/gnome-vfs-utils.c	2003/11/17 14:14:15
@@ -46,6 +46,9 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <unistd.h>
+#ifdef __sun
+#include <sys/statfs.h>    /* For statfs structure. */
+#endif
 
 #if HAVE_SYS_STATVFS_H
 #include <sys/statvfs.h>
@@ -811,7 +814,11 @@
 		 * with statfs.
 		 */
 		struct statfs statfs_buffer2;
+#ifndef __sun
 		statfs_result = statfs (unescaped_path, &statfs_buffer2);
+#else
+		statfs_result = statfs (unescaped_path, &statfs_buffer2, 0, 0 );
+#endif
 		g_free (unescaped_path);
 
 		if (statfs_result != 0) {
@@ -819,7 +826,12 @@
 		}
 		
 		/* linux/ncp_fs.h: NCP_SUPER_MAGIC == 0x564c */
+                /* Solaris has member f_fstype instead of f_type. */
+#ifndef __sun
 		if (statfs_buffer2.f_type == 0x564c) {
+#else
+		if (statfs_buffer2.f_fstyp == 0x564c) {
+#endif
 			return GNOME_VFS_ERROR_NOT_SUPPORTED;
 		}
 	}
