From: Andrew Innes Date: Sun, 17 Jan 1999 19:24:42 +0000 (+0000) Subject: (w32_executable_type): Relax the check to identify X-Git-Tag: emacs-20.4~844 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a7325b562fb6b1b6fe29fad6ca1445efc0c42a10;p=emacs.git (w32_executable_type): Relax the check to identify cygwin-compiled applications, because the exact dll name varies with release. Now only require the name to start "cygwin". --- diff --git a/src/w32proc.c b/src/w32proc.c index 81cdcbf93bf..abc61455594 100644 --- a/src/w32proc.c +++ b/src/w32proc.c @@ -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;