diff -urp gnome-commander-0.9.8/configure gnome-commander-0.9.8-cygwin/configure --- gnome-commander-0.9.8/configure Wed Jan 29 22:36:42 2003 +++ gnome-commander-0.9.8-cygwin/configure Tue Jul 16 00:13:48 2002 @@ -3794,8 +3794,7 @@ EOF else $CC -o impgen impgen.c ; fi)~ $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' - #old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' - old_archive_from_expsyms_cmds= + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' # cygwin and mingw dlls have different entry points and sets of symbols # to exclude. @@ -5640,8 +5639,7 @@ old_postuninstall_cmds=$lt_old_postunins old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. -#old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds -old_archive_from_expsyms_cmds= +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds diff -urp gnome-commander-0.9.8/src/gnome-cmd-connection.c gnome-commander-0.9.8-cygwin/src/gnome-cmd-connection.c --- gnome-commander-0.9.8/src/gnome-cmd-connection.c Mon Jul 15 23:30:56 2002 +++ gnome-commander-0.9.8-cygwin/src/gnome-cmd-connection.c Thu Jan 30 00:38:32 2003 @@ -17,6 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include +#include #include #include "gnome-cmd-includes.h" #include "gnome-cmd-connection-funcs.h" @@ -35,6 +36,9 @@ GnomeCmdConnection *con_root = NULL; static gboolean is_mounted (const gchar *dev, const gchar *mount_dir) { +#ifdef __CYGWIN__ + return TRUE; +#else gchar *s; FILE *fd; char tmp[256]; @@ -51,6 +55,7 @@ static gboolean is_mounted (const gchar } return FALSE; +#endif } @@ -177,6 +182,7 @@ parse_mntents (void) { ent = getmntent (filep); if (ent) { +#ifndef __CYGWIN__ if (strcmp (ent->mnt_type, "iso9660") == 0) add_mntent (ent, DEV_TYPE_CDROM); else if (strncmp ("/dev/cd", ent->mnt_fsname, 7) == 0) @@ -187,6 +193,12 @@ parse_mntents (void) add_mntent (ent, DEV_TYPE_FLOPPY); else if (strncmp ("/dev/sd", ent->mnt_fsname, 7) == 0) add_mntent (ent, DEV_TYPE_DEFAULT); +#else + if (strlen(ent->mnt_fsname)==2) /* DOS drives */ + add_mntent (ent, DEV_TYPE_CDROM); + else + add_mntent (ent, DEV_TYPE_DEFAULT); +#endif } } while (ent != NULL);