This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

make/cygwin 1.1.1


I've had a problem with make/cygwin-1.1.1 regarding Makefiles containing lines ending with CR/LF (make doesn't function at all).
I've made the following patch in read.c and all works fine now :

*** make2/src/make/read.c	Fri Aug 13 22:10:18 1999
--- make/src/make/read.c	Wed Jun  7 09:07:01 2000
***************
*** 2123,2128 ****
--- 2123,2136 ----
  	  p[0] = '\n';
  	  len = 1;
  	}
+ #if defined (WINDOWS32) || defined (__MSDOS__) || defined (__CYGWIN__)
+       // OB - 07/06/2000 - Suppression des éventuels \r
+       else
+ 	  if (p[len-2] == '\r') {
+ 	    p[len-2] = p[len-1];
+ 	    p[--len] = 0;
+ 	  }
+ #endif
  
        p += len;
        if (p[-1] != '\n')


Regards

O. Bretteville

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]