+2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
+
+ * progreloc.c (maybe_executable) [CYGWIN]: Use the access() function.
+
2006-04-30 Bruno Haible <bruno@clisp.org>
* javacomp.h (compile_java_class): Add source_version, target_version
/* Provide relocatable programs.
- Copyright (C) 2003-2005 Free Software Foundation, Inc.
+ Copyright (C) 2003-2006 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software; you can redistribute it and/or modify it
static bool
maybe_executable (const char *filename)
{
-#if !defined WIN32
+ /* Woe32 lacks the access() function, but Cygwin doesn't. */
+#if !(defined WIN32 && !defined __CYGWIN__)
if (access (filename, X_OK) < 0)
return false;