| delorie.com/archives/browse.cgi | search | 
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm | 
| List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> | 
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> | 
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> | 
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> | 
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com | 
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com | 
| Message-Id: | |
| <006AB393E1CAF052*/c=fr/admd=atlas/prmd=edfgdf/o=notes/s=Bretteville/g=Olivier/@MHS> | |
| Date: | 07 Jun 2000 11:58:07 +0200 | 
| From: | Olivier BRETTEVILLE <Olivier DOT Bretteville AT edf DOT fr> | 
| To: | cygwin <cygwin AT sourceware DOT cygnus DOT com> | 
| Subject: | make/cygwin 1.1.1 | 
| MIME-Version: | 1.0 | 
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id LAA19824 | 
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 AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy | 
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |