From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16070 invoked by alias); 7 Feb 2014 09:27:10 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 16055 invoked by uid 89); 7 Feb 2014 09:27:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-lb0-f170.google.com Received: from mail-lb0-f170.google.com (HELO mail-lb0-f170.google.com) (209.85.217.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 07 Feb 2014 09:27:09 +0000 Received: by mail-lb0-f170.google.com with SMTP id u14so2428203lbd.15 for ; Fri, 07 Feb 2014 01:27:05 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.153.9.97 with SMTP id dr1mr734938lad.45.1391765225701; Fri, 07 Feb 2014 01:27:05 -0800 (PST) Received: by 10.114.62.15 with HTTP; Fri, 7 Feb 2014 01:27:05 -0800 (PST) Date: Fri, 07 Feb 2014 09:27:00 -0000 Message-ID: Subject: Re: cygwin-1.7.28 getpwent header declaration changes ? From: Jan Nijtmans To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00133.txt.bz2 2014-02-06 15:41 GMT+01:00 Corinna Vinschen: > Jan, can you please check if SQlite builds *without* defining > __BSD_VISIBLE, but adding the following lines to /usr/include/sys/file.h; That addition makes SQLite build fine again. You can try it easily by installing the "sqlite3-debug" package and then: gcc -c /usr/src/debug/sqlite3-3.8.3-2/sqlite3.c If this command produces an "sqlite3.o" file in the current directory without complaining, everything is OK. (The current sqlite3-3.8.3-2 package doesn't set __BSD_VISIBLE, and with your proposed change it won't be necessary to add it) Thank you very much! Regards, Jan Nijtmans > Index: sys/file.h > =================================================================== > RCS file: /cvs/src/src/winsup/cygwin/include/sys/file.h,v > retrieving revision 1.8 > diff -u -p -r1.8 file.h > --- sys/file.h 17 Jan 2014 11:01:46 -0000 1.8 > +++ sys/file.h 6 Feb 2014 14:41:23 -0000 > @@ -31,4 +31,16 @@ > #define L_INCR SEEK_CUR > #define L_XTND SEEK_END > > +/* Including always defines flock & macros. */ > +#if __BSD_VISIBLE - 0 == 0 > + > +#define LOCK_SH 0x01 /* shared file lock */ > +#define LOCK_EX 0x02 /* exclusive file lock */ > +#define LOCK_NB 0x04 /* don't block when locking */ > +#define LOCK_UN 0x08 /* unlock file */ > + > +extern int flock _PARAMS ((int, int)); > + > +#endif > + > #endif -- 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