comparison src/w32proc.c @ 24105:6252c59e8b6c

(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".
author Andrew Innes <andrewi@gnu.org>
date Sun, 17 Jan 1999 19:24:42 +0000
parents 9f8417cca07b
children 65ebab3569e0
comparison
equal deleted inserted replaced
24104:939f14a75ce2 24105:6252c59e8b6c
637 637
638 for ( ; imports->Name; imports++) 638 for ( ; imports->Name; imports++)
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;
646 } 649 }
647 } 650 }