bug in strip 2.9.4

Mumit Khan khan@xraylith.wisc.edu
Sun Feb 28 23:02:00 GMT 1999


On 1999年2月28日, 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


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /