diff options
author | Andrew Innes <andrewi@gnu.org> | 1999-01-17 19:24:42 +0000 |
---|---|---|
committer | Andrew Innes <andrewi@gnu.org> | 1999-01-17 19:24:42 +0000 |
commit | e67903e203c7f871033d0ccdae134a4a999cb4dd (patch) | |
tree | b2e397e0bf0cb4d2d2d5bf62f4dc904698b826d3 | |
parent | 7b17a90fc9de26af143bcfd719ba6b751f2a8c3d (diff) | |
download | emacs-e67903e203c7f871033d0ccdae134a4a999cb4dd.tar.gz |
(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".
-rw-r--r-- | src/w32proc.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |