]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32_executable_type): Relax the check to identify
authorAndrew Innes <andrewi@gnu.org>
Sun, 17 Jan 1999 19:24:42 +0000 (19:24 +0000)
committerAndrew Innes <andrewi@gnu.org>
Sun, 17 Jan 1999 19:24:42 +0000 (19:24 +0000)
cygwin-compiled applications, because the exact dll name varies
with release.  Now only require the name to start "cygwin".

src/w32proc.c

index 81cdcbf93bff2a79bc86f5690870a78b8a518ad4..abc6145559400879d60e4439e071938a9d00dfe9 100644 (file)
@@ -639,7 +639,10 @@ w32_executable_type (char * filename, int * is_dos_app, int * is_cygnus_app)
            {
              char * dllname = RVA_TO_PTR (imports->Name, section, executable);
 
-             if (strcmp (dllname, "cygwin.dll") == 0)
+             /* The exact name of the cygwin dll has changed with
+                various releases, but hopefully this will be reasonably
+                future proof.  */
+             if (strncmp (dllname, "cygwin", 6) == 0)
                {
                  *is_cygnus_app = TRUE;
                  break;