1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-08 03:22:21 +03:00

Omit the _XOPEN_SOURCE 500 define on Mac OS-X. Ticket #2673 (CVS 4450)

FossilOrigin-Name: 0bbf654b6745058a705ef5c320bdd5fb06735271
This commit is contained in:
drh
2007-10-01 14:30:14 +00:00
parent 3bbbd7d6f0
commit 6708061770
3 changed files with 17 additions and 9 deletions

View File

@@ -11,7 +11,7 @@
*************************************************************************
** Internal interface definitions for SQLite.
**
** @(#) $Id: sqliteInt.h,v 1.610 2007/09/21 04:28:16 danielk1977 Exp $
** @(#) $Id: sqliteInt.h,v 1.611 2007/10/01 14:30:15 drh Exp $
*/
#ifndef _SQLITEINT_H_
#define _SQLITEINT_H_
@@ -59,7 +59,15 @@
extern int sqlite3MAX_LIKE_PATTERN_LENGTH;
#endif
#define _XOPEN_SOURCE 500 /* Needed to enable pthread recursive mutexes */
/*
** We need to define _XOPEN_SOURCE as follows in order to enable
** recursive mutexes on most unix systems. But Mac OS X is different.
** The _XOPEN_SOURCE define causes problems for Mac OS X we are told,
** so it is omitted there. See ticket #2673.
*/
#ifndef __MACOS__
# define _XOPEN_SOURCE 500 /* Needed to enable pthread recursive mutexes */
#endif
#if defined(SQLITE_TCL) || defined(TCLSH)
# include <tcl.h>