Shachar Shemesh wrote:

I'll try to rewrite the test so it applies to cygwin as well.

Patch attached. You will need to regenerate the configure script with autoconf

Shachar

Index: precomp.h
===================================================================
--- precomp.h   (revision 544)
+++ precomp.h   (working copy)
@@ -20,7 +20,7 @@
 #include <sys/stat.h>
 #endif
 
-#if HAVE_MMAP
+#if HAVE_SYS_MMAN_H
 #include <sys/mman.h>
 #endif
 
Index: configure.ac
===================================================================
--- configure.ac        (revision 544)
+++ configure.ac        (working copy)
@@ -61,7 +61,7 @@
 AC_HEADER_DIRENT
 AC_HEADER_STDC
 AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS([fcntl.h netinet/in.h stdlib.h string.h strings.h sys/time.h 
unistd.h utime.h])
+AC_CHECK_HEADERS([fcntl.h netinet/in.h stdlib.h string.h strings.h sys/time.h 
unistd.h utime.h sys/mman.h])
 
 AC_CHECK_HEADERS([argtable2.h] [map],[],[AC_MSG_FAILURE([Mandatory header file 
not found])])
 
@@ -108,7 +108,6 @@
 AC_FUNC_FORK
 AC_FUNC_LSTAT
 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
-AC_FUNC_MMAP
 AC_FUNC_STAT
 AC_CHECK_FUNCS([bzero dup2 memset mkdir munmap rmdir strchr strerror strtoul])
 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Rsyncrypto-devel mailing list
Rsyncrypto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsyncrypto-devel

Reply via email to