aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Innes1999-01-17 19:24:42 +0000
committerAndrew Innes1999-01-17 19:24:42 +0000
commita7325b562fb6b1b6fe29fad6ca1445efc0c42a10 (patch)
tree5ede46748d54927b832fa26b0f3cf1fe1c9b0eab /src
parenta5352d98bb5d0c501cd03b2b391be0ee47e558d8 (diff)
downloademacs-a7325b562fb6b1b6fe29fad6ca1445efc0c42a10.tar.gz
emacs-a7325b562fb6b1b6fe29fad6ca1445efc0c42a10.zip
(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".
Diffstat (limited to 'src')
-rw-r--r--src/w32proc.c5
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)
639 { 639 {
640 char * dllname = RVA_TO_PTR (imports->Name, section, executable); 640 char * dllname = RVA_TO_PTR (imports->Name, section, executable);
641 641
642 if (strcmp (dllname, "cygwin.dll") == 0) 642 /* The exact name of the cygwin dll has changed with
643 various releases, but hopefully this will be reasonably
644 future proof. */
645 if (strncmp (dllname, "cygwin", 6) == 0)
643 { 646 {
644 *is_cygnus_app = TRUE; 647 *is_cygnus_app = TRUE;
645 break; 648 break;