changeset 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 939f14a75ce2
children ea58bb66d0e3
files src/w32proc.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32proc.c	Sun Jan 17 19:23:52 1999 +0000
+++ b/src/w32proc.c	Sun Jan 17 19:24:42 1999 +0000
@@ -639,7 +639,10 @@
   	    {
 	      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;