delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/07/04:27:29

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:mime-version:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=ArplAiDr0R3inOiskB0hFctvWKLEu
3X26C9LYLqlrROCSS3BaopTZ6vKHe3jwC+K7oNT0zdI4+xkz+vYfyhAeS3nZIbDY
6kLuSOzKGsUD+eghOC4IOhRT4HCSCpkshGbVooHn6wij3lHRXp6iRiRwj5oR8/f3
WeBHmjmvkuvUjE=
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:mime-version:date:message-id:subject:from:to
:content-type; s=default; bh=KOK4ug+cO9RlHXG5QmWMGww6wzg=; b=S/K
8uw4Lxpwf80MZLEvAvVEc8nXs/+VwZCumohIQRNKWUTSRd4kyo83WgQkvK/nq8d2
XzLjxYGO09JTIWr1nAdz3xEh8DUw7da08lc2ubP1qll0NwAdcO48vWLuN3fvWsMf
/Kq/4iytiCrMDIT66+AC814cw9if0oyzcZ3xdSCg=
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-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
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)
Date: Fri, 7 Feb 2014 10:27:05 +0100
Message-ID: <CAO1jNwvjhAseWpT+yL59OpJzeNp7NhNPv0FCa+X4nqqu8QQnrQ@mail.gmail.com>
Subject: Re: cygwin-1.7.28 getpwent header declaration changes ?
From: Jan Nijtmans <jan DOT nijtmans AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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 <sys/file.h> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019