On Feb 6 15:15, Jan Nijtmans wrote: > 2014-02-06 15:02 GMT+01:00 Corinna Vinschen: > > In sys/_default_fcntl.h, the LOCK_xx macros are defined if > > __BSD_VISIBLE is defined, which *is* defined by default, unless you > > define one of > > > > _ANSI_SOURCE > > _C99_SOURCE > > _C11_SOURCE > > _POSIX_C_SOURCE > > _XOPEN_SOURCE > > Yes, SQLite defines _XOPEN_SOURCE in sqliteInt.h: > > <http://www.sqlite.org/src/artifact/fdab572b3567d587?ln=198-200> > > I could add a !defined(__CYGWIN__) there, but I prefer > just to define __BSD_VISIBLE.
On second thought, Linux defines the LOCK_xx macros unconditionally in sys/file.h. What we could do is to define the macros in sys/file.h if they are not already defined because __BSD_VISIBLE wasn't set. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat
pgpOmrHVYGp5y.pgp
Description: PGP signature