Index: thunar/Makefile.am =================================================================== --- thunar/Makefile.am (revision 23419) +++ thunar/Makefile.am (working copy) @@ -227,7 +227,9 @@ # install symlink to 'thunar' install-data-local: $(mkinstalldirs) $(DESTDIR)$(bindir) +if !HAVE_CYGWIN ( cd $(DESTDIR)$(bindir) ; ln -sf Thunar thunar ) +endif clean-local: rm -f *.core core core.* Index: configure.in.in =================================================================== --- configure.in.in (revision 23419) +++ configure.in.in (working copy) @@ -48,6 +48,7 @@ AC_AIX() AC_ISC_POSIX() AC_MINIX() +AM_CONDITIONAL([HAVE_CYGWIN], [test "`uname | grep \"CYGWIN\"`" != ""]) dnl ******************************** dnl *** Check for basic programs *** Index: thunar-vfs/thunar-vfs-mime-cache.c =================================================================== --- thunar-vfs/thunar-vfs-mime-cache.c (revision 23419) +++ thunar-vfs/thunar-vfs-mime-cache.c (working copy) @@ -163,9 +163,9 @@ static void thunar_vfs_mime_cache_finalize (GObject *object) { +#ifdef HAVE_MMAP ThunarVfsMimeCache *cache = THUNAR_VFS_MIME_CACHE (object); -#ifdef HAVE_MMAP if (G_LIKELY (cache->buffer != NULL)) munmap (cache->buffer, cache->bufsize); #endif