diff options
Diffstat (limited to 'src')
| -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) | |||
| 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; |