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


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

Re: (Fwd) Re: Absolute paths in BFD


> Date: 30 Apr 2000 12:46:48 -0700
> From: Ian Lance Taylor <ian@zembu.com>
> 
>    >    > Yes, I think setmode could be a problem.  It might be best to test for
>    >    > that separately.
>    > 
>    >    Testing (in the Autoconf sense) could be non-trivial.  Perhaps using
>    >    setmode for DOS and Windows (conditioned on appropriate
>    >    system-dependent macros, like __MSDOS__ and _WIN32) would be good
>    >    enough?
>    > 
>    > Why is an autoconf test non-trivial?
> 
>    Because it turns out there are systems (I think FreeBSD is one of
>    them) which have an incompatible function by the same name.
> 
> Are there any systems which define O_BINARY but for which setmode is
> not compatible with the DOS version?

I'm not aware of such systems.  But then until a few weeks ago I
didn't know FreeBSD had setmode, either.

Anyway, I can add an Autoconf test for setmode and use HAVE_SETMODE
only if O_BINARY is defined and has a non-zero value.  Would that be
okay?

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