delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=W0Dc0F5SRKWHPYCpHMrTtOdKuxe++9S6UBPNuOkMDCZg4b6tZkPSW | |
PQnTkPFIoCSDurTvQl1aJijiSiClB7jijL5U0qa3KpX7eb5YoqBk2NGVyHctx8hT | |
l2cGMLWl/BwHeRZ/3ezknKw0p1HBx4vaYKP+GmcfwrWuhrDJYi7XDk= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=kYUnU8BfAm+BDjejdXbAgPTBks8=; b=Bc9RdF0qNQGraM4uMg+jbCvhreOA | |
3KhHYg9YF+FVC5t/6wBAnmveXu6RIZ4PTDxRgJvPQWc0BfU18KwgDtsrv3TyfxyO | |
DZnQvdKphvB+opKOqRzHYurWw3En9qi01Ecoh/avhMWIRpk0ltg2QJJ6Xv2saUQI | |
LHz2Wcfw0YqNE3M= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Spam-SWARE-Status: | No, score=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Thu, 6 Feb 2014 15:41:44 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: cygwin-1.7.28 getpwent header declaration changes ? |
Message-ID: | <20140206144144.GK2821@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <52F339CA DOT 5070305 AT gmail DOT com> <20140206090117 DOT GD2821 AT calimero DOT vinschen DOT de> <52F361C5 DOT 3000807 AT gmail DOT com> <CAO1jNwvSip2JNbPq2y+1fMsWo0dLO29oo4Vz+Y6T80-4agSuOQ AT mail DOT gmail DOT com> <20140206140244 DOT GH2821 AT calimero DOT vinschen DOT de> <CAO1jNws3H_Wbec=y_UoYkhrb5nMX7iT7_A5XaHcQKCw32o055g AT mail DOT gmail DOT com> <CAO1jNwvccFJmrotONe31v0gYRnRT-jRjKCYugADPNYiGMTkCfQ AT mail DOT gmail DOT com> <20140206142835 DOT GJ2821 AT calimero DOT vinschen DOT de> |
MIME-Version: | 1.0 |
In-Reply-To: | <20140206142835.GJ2821@calimero.vinschen.de> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
--Gs9iBZf6UKWgztis Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 6 15:28, Corinna Vinschen wrote: > 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 > >=20 > > Yes, SQLite defines _XOPEN_SOURCE in sqliteInt.h: > >=20 > > <http://www.sqlite.org/src/artifact/fdab572b3567d587?ln=3D198-200> > >=20 > > I could add a !defined(__CYGWIN__) there, but I prefer > > just to define __BSD_VISIBLE. >=20 > 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. Jan, can you please check if SQlite builds *without* defining __BSD_VISIBLE, but adding the following lines to /usr/include/sys/file.h; Index: sys/file.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =20 +/* Including <sys/file.h> always defines flock & macros. */ +#if __BSD_VISIBLE - 0 =3D=3D 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 Thanks in advance, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --Gs9iBZf6UKWgztis Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJS858oAAoJEPU2Bp2uRE+gNZQQAJSCkquPIUBFKzId0EQIM0tK OO9dPeOcj3P9UpovDhL+7FMUFE8AEo+HLXY98n2W7G+4pv3idwcVcS7F7WIG+fOx FkC4KCgxKJVeZljQNwk9sL6NAwb2cRz6nP63wph4YHxo+zD5yu2hObUqTIC+ffIZ hwb+r9rqlRrvSzJFEU1JQdyELs+ZjfX8BqaoPb7Mj3DTaAtt08gWtnNc9ZtLL47y JIPUPej1qE5ZGLMXEFloOPYkoJLSD26LT95Gv0nT3WvM3FpFBTXphjsPQcaGy1Iz MSj/s2BPabYf/q29PGS6kzt4AjbR2ybTD49OrhN8CFdlgQWHDUcJ7Z6svpOUEvWI 8VaGJPNtM77aXyDhLsSb50JSAB8yZw+MGr6vTFnFNKzrvLHg1SeeXvO2K8bLIQIP KzisuaKDM3WoGRNfClGPkfnpt5+EeYpKIWH+mNLQrXujdr6DbC/QEfqXQ7XAyYM2 ObIgDeY5BCTtIUZ/xaBboTQ9RBXPPT97l1nexAGsHd6tUMJVD/HzOZOJese40ht0 QsjD7+ilY9LssbijWPVwwzdUCB7DCohfna5rnqSDhI0gmHBPCJ4PkTdG/nUL8ZMn TyiigpiOrS8Mr6D2z7PFcBBFUCZHmr+Se23YHYyezxA5pn+MmWkt1CoHujrIMluK eWgV4ULzGAO0xXIsGNmI =sYp/ -----END PGP SIGNATURE----- --Gs9iBZf6UKWgztis--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |