X-Recipient: archive-cygwin@delorie.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=KtiwOsbJuSHf+ixvRG5Jil88sAXtiL0pnI+94yPa1GASgF5/QYohd
	lAWO55udFxwPOEuncTG94egqfiZxHSYkUCNs1DZtzXPNIdHp2sT99v0P21xSFgK9
	mJRyG+JvjZ3/SfCKCXez1QtksibQBKaRLtCiqoiktpNU9aNaz7KG1M=
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=mCo4X4Xf8YRMVQlzpaItwV01GKs=; b=vb+3FjQMgph5hD291tnXdn4YcQql
	GihiC2/BzZXcwD9WPrMR8txKRZ1R+SLheoaz/7l1f9hiWdJsHS/VuXEpzoKXn1oM
	7g8Yh55xvHkMbt8k0tajxGiyU2iLarauEVb+duMPrwvxckQ/xvkeixrJdLvw3guN
	/NeZXs8Llsdpk4E=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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:02:44 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cygwin-1.7.28 getpwent header declaration changes ?
Message-ID: <20140206140244.GH2821@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <52F339CA.5070305@gmail.com> <20140206090117.GD2821@calimero.vinschen.de> <52F361C5.3000807@gmail.com> <CAO1jNwvSip2JNbPq2y+1fMsWo0dLO29oo4Vz+Y6T80-4agSuOQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;	protocol="application/pgp-signature"; boundary="s8uQA167RD2xhjBe"
Content-Disposition: inline
In-Reply-To: <CAO1jNwvSip2JNbPq2y+1fMsWo0dLO29oo4Vz+Y6T80-4agSuOQ@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)

--s8uQA167RD2xhjBe
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Feb  6 14:00, Jan Nijtmans wrote:
> On Feb  6 08:29, Marco Atzeri wrote:
> > Is something slightly changed in the  relative system headers ?
>=20
> 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.
>=20
> 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.

They are.  There's an #include <fcntl.h> in sys/file.h, which in
turn includes sys/fcntl.h which includes sys/_default_fcntl.h.

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


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--s8uQA167RD2xhjBe
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJS85YEAAoJEPU2Bp2uRE+gfuwP/3zrvklymRkWfFxjLFB2/J1a
SnAbtAXbNcGY4l7NI1ozS8wnO3cC6fJx0LA60yD4ZtANRQTFn/6wN1tgSWKyDS7v
qUxoBXLqzRSnxQHzs5qBRQYucQYsgsg5C5MFoiqCxl6LU8Yrdub4nON09w4wpLPV
Ioe+IGiJx21Tz4/UKYxD1hqI6rWwEPGL0qazRT9OYlVbV6+11x8ZZVaDNg8gLt7a
izgiaVqZ5SQnNj5RJSdag9NKDQhh5lTKAT6Q3Tq18OJcQYnaHg+z980ClKExBywa
OQw8ykPIJoYqUAftnbyMcbJj4zxsmMTwfbbTPH3Aq2dvqM3uZcfLzVsHdMa2+1Rs
ZoY93pYDR95QNRNp5+8FJu49rQK8OPEzNNtAohWnFCRqmv5yM0ZzE2MSk6dxGdJh
pvczLxMqYGvYZRzm5MQu7jtHXR1zZwYc7SCwLs1uORsNc9Lyj6+WWrT5MBYrpt7k
nZrQAyjVa+nNrMsNfLPKnzGEZp+XyaEMBLLbqN8VR9RZM8FJ4raqGQMFI6cAhkDz
ezB83EDGgZUSpwQxYr0oVRS0YROGQpczKARDY82XE4PH9pZlEArLqMW9cKMNg/gj
o0MeFCOAhFnvTHY9RuL8Lczfk9ladP9NNu1SvCXuU3MIt8KHOsWppI2qlO/GMYQg
rtcXOyQuYQyYk8p7C8/X
=NOzH
-----END PGP SIGNATURE-----

--s8uQA167RD2xhjBe--
