]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Improve maybe_executable function on Cygwin.
authorBruno Haible <bruno@clisp.org>
Mon, 8 May 2006 20:23:08 +0000 (20:23 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:15 +0000 (12:13 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/progreloc.c

index 0d0ae0c76d3f1503a17a08d9209167f9ede0659b..02f32ea7a250a96e49a8922b904bd3d997b83b20 100644 (file)
@@ -1,3 +1,7 @@
+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
index ff5571ebfb080029cf9541d994e23ae268857a1a..be64bf0e9253403ad1a06ad207d95ed17147caed 100644 (file)
@@ -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 <bruno@clisp.org>, 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;