Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com X-Authentication-Warning: modi.xraylith.wisc.edu: khan owned process doing -bs Date: Sun, 28 Feb 1999 10:13:15 -0600 (CST) From: Mumit Khan To: Eli Zaretskii cc: "Pierre A. Humblet" , bug-gnu-utils AT gnu DOT org, cygwin AT sourceware DOT cygnus DOT com Subject: Re: bug in strip 2.9.4 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 28 Feb 1999, Eli Zaretskii wrote: > Isn't there some magic like this for __MSDOS__ or some such? Binutils do > work in the DJGPP port, and binary mode is not the default in DJGPP. > > > #if _WIN32 > > setmode (fromfd, O_BINARY); > > setmode (tofd, O_BINARY); > > #endif Of course. Thanks for pointing it out. > I think it's better to say something like that: > > #if O_BINARY > setmode (... > > because it works for other platforms with O_BINARY as well. I don't know if all systems that have O_BINARY also have setmode. But of course, this is a pretty trivial autoconf check -- if both O_BINARY and setmode exists, use it. Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com