This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


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

Re: Problem with F:/ and /cygdrive/f/ solved!


> However, is O_BINARY a standard flag for open?  Adding that flag on Solaris
> seems to fail in compile since that symbol is not defined or mentioned in
> the open man page.  I'd hate to add #ifdef around every open...

Once per file is enough (or put it into your config.h for the whole
project):
  #ifndef O_BINARY
  # define O_BINARY 0
  #endif

Or-ing it with other flags for `open' is then harmless on platforms that
don't know anything about the distinction of binary and text files.

Cheers,
//lat
-- 
People demand freedom of speech to make up for the freedom of
thought which they avoid.  --Kierkegaard

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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