From: Bruno Haible Date: Mon, 8 May 2006 20:23:08 +0000 (+0000) Subject: Improve maybe_executable function on Cygwin. X-Git-Tag: v0.15~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=163128878365fe8a49bc3de98e09aaa972f2ea9c;p=thirdparty%2Fgettext.git Improve maybe_executable function on Cygwin. --- diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index 0d0ae0c76..02f32ea7a 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,7 @@ +2006-05-06 Charles Wilson + + * progreloc.c (maybe_executable) [CYGWIN]: Use the access() function. + 2006-04-30 Bruno Haible * javacomp.h (compile_java_class): Add source_version, target_version diff --git a/gettext-tools/lib/progreloc.c b/gettext-tools/lib/progreloc.c index ff5571ebf..be64bf0e9 100644 --- a/gettext-tools/lib/progreloc.c +++ b/gettext-tools/lib/progreloc.c @@ -1,5 +1,5 @@ /* Provide relocatable programs. - Copyright (C) 2003-2005 Free Software Foundation, Inc. + Copyright (C) 2003-2006 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it @@ -91,7 +91,8 @@ static int executable_fd = -1; 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;