This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: bug in strip 2.9.4



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@sourceware.cygnus.com