This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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
- Date: Fri, 7 Feb 2014 10:27:05 +0100
- Subject: Re: cygwin-1.7.28 getpwent header declaration changes ?
- Authentication-results: sourceware.org; auth=none
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