On Feb 6 08:29, Marco Atzeri wrote: > Is something slightly changed in the relative system headers ?
After upgrading to Cygwin 1.7.28, Sqlite doesn't compile any more. See log below. When reverting to 1.7.27-2, everything is back to normal. The LOCK_EX macro's and friends are supposed to be defined when including <sys/file.h>: <http://man7.org/linux/man-pages/man2/flock.2.html> but they aren't any more. I added a: #define __BSD_VISIBLE 1 to sqliteInt.h (before all headers are included), then everything works again. Regards, Jan Nijtmans ============================================== sqlite3.c: In function 'flockCheckReservedLock': sqlite3.c:25869:38: error: 'LOCK_EX' undeclared (first use in this function) int lrc = robust_flock(pFile->h, LOCK_EX | LOCK_NB); ^ sqlite3.c:25869:38: note: each undeclared identifier is reported only once for e ach function it appears in sqlite3.c:25869:48: error: 'LOCK_NB' undeclared (first use in this function) int lrc = robust_flock(pFile->h, LOCK_EX | LOCK_NB); ^ sqlite3.c:25872:36: error: 'LOCK_UN' undeclared (first use in this function) lrc = robust_flock(pFile->h, LOCK_UN); ^ sqlite3.c: In function 'flockLock': sqlite3.c:25949:30: error: 'LOCK_EX' undeclared (first use in this function) if (robust_flock(pFile->h, LOCK_EX | LOCK_NB)) { ^ sqlite3.c:25949:40: error: 'LOCK_NB' undeclared (first use in this function) if (robust_flock(pFile->h, LOCK_EX | LOCK_NB)) { ^ sqlite3.c: In function 'flockUnlock': sqlite3.c:25998:30: error: 'LOCK_UN' undeclared (first use in this function) if( robust_flock(pFile->h, LOCK_UN) ){ ^ Makefile:563: recipe for target 'sqlite3.lo' failed make: *** [sqlite3.lo] Error 1 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple