This patch defined R_OK to what I think it should be for windows and
changes access to _access. I think MS has access in an oldnames
library, but I chose to redefine it since according to MS, the POSIX
name access is deprecated
(http://msdn2.microsoft.com/en-us/library/ms235395(vs.80).aspx).

Chris
Index: libltdl/libltdl/lt__private.h
===================================================================
RCS file: /sources/libtool/libtool/libltdl/libltdl/lt__private.h,v
retrieving revision 1.13
diff -u -r1.13 lt__private.h
--- libltdl/libltdl/lt__private.h	25 Mar 2007 12:12:43 -0000	1.13
+++ libltdl/libltdl/lt__private.h	4 Apr 2007 14:08:56 -0000
@@ -45,6 +45,9 @@
 
 #if defined(HAVE_UNISTD_H)
 #  include <unistd.h>
+#elif defined (_WIN32) || defined (_WIN64)
+#  define access(a,b) _access(a,b)
+#  define R_OK 4
 #endif
 
 /* Import internal interfaces...  */

Reply via email to