From e67903e203c7f871033d0ccdae134a4a999cb4dd Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Sun, 17 Jan 1999 19:24:42 +0000 Subject: (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". --- src/w32proc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- cgit v1.2.1