mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-08 03:22:21 +03:00
Additional #ifdefing around _XOPEN_SOURCE. Ticket #2681. (CVS 4452)
FossilOrigin-Name: eb5d78451ee2a5d8480537530f30fbb305bf7632
This commit is contained in:
12
manifest
12
manifest
@@ -1,5 +1,5 @@
|
|||||||
C Document\sthat\sEND\sTRANSACTION\sis\san\salias\sfor\sCOMMIT.\s\sTicket\s#2656\s(CVS\s4451)
|
C Additional\s#ifdefing\saround\s_XOPEN_SOURCE.\s\sTicket\s#2681.\s(CVS\s4452)
|
||||||
D 2007-10-01T17:45:40
|
D 2007-10-01T17:47:00
|
||||||
F Makefile.in cbfb898945536a8f9ea8b897e1586dd1fdbcc5db
|
F Makefile.in cbfb898945536a8f9ea8b897e1586dd1fdbcc5db
|
||||||
F Makefile.linux-gcc 65241babba6faf1152bf86574477baab19190499
|
F Makefile.linux-gcc 65241babba6faf1152bf86574477baab19190499
|
||||||
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
|
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
|
||||||
@@ -132,7 +132,7 @@ F src/server.c 087b92a39d883e3fa113cae259d64e4c7438bc96
|
|||||||
F src/shell.c 82089379833e361ba8a2ae65316a2173785300c0
|
F src/shell.c 82089379833e361ba8a2ae65316a2173785300c0
|
||||||
F src/sqlite.h.in 60d1a884f49304787b07864ceba31e6df93a5a7c
|
F src/sqlite.h.in 60d1a884f49304787b07864ceba31e6df93a5a7c
|
||||||
F src/sqlite3ext.h a93f59cdee3638dc0c9c086f80df743a4e68c3cb
|
F src/sqlite3ext.h a93f59cdee3638dc0c9c086f80df743a4e68c3cb
|
||||||
F src/sqliteInt.h cb503be6d432493c877674e129369d928441bc0a
|
F src/sqliteInt.h 8fb50cf69b235dfe7f3b604d4d219a9726b8478c
|
||||||
F src/sqliteLimit.h 1bcbbdfa856f8b71b561abb31edb864b0eca1d12
|
F src/sqliteLimit.h 1bcbbdfa856f8b71b561abb31edb864b0eca1d12
|
||||||
F src/table.c 1aeb9eab57b4235db86fe15a35dec76fb445a9c4
|
F src/table.c 1aeb9eab57b4235db86fe15a35dec76fb445a9c4
|
||||||
F src/tclsqlite.c 9659ec914abfdb35e184eee908d07eba11a39018
|
F src/tclsqlite.c 9659ec914abfdb35e184eee908d07eba11a39018
|
||||||
@@ -580,7 +580,7 @@ F www/tclsqlite.tcl 8be95ee6dba05eabcd27a9d91331c803f2ce2130
|
|||||||
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
|
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
|
||||||
F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
|
F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
|
||||||
F www/whentouse.tcl fc46eae081251c3c181bd79c5faef8195d7991a5
|
F www/whentouse.tcl fc46eae081251c3c181bd79c5faef8195d7991a5
|
||||||
P 0bbf654b6745058a705ef5c320bdd5fb06735271
|
P ebe3e6913c35bebb0e78dac995527d5da97a9377
|
||||||
R dbb20b7521eafe586ad12791eba4eb3d
|
R cfc075825147a4ccdcc8d892e7e61dcc
|
||||||
U drh
|
U drh
|
||||||
Z 4ce0ec44aa7cb02f4e0a539e35574c34
|
Z fd115abb078ffce00ef35ed41bd4c589
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
ebe3e6913c35bebb0e78dac995527d5da97a9377
|
eb5d78451ee2a5d8480537530f30fbb305bf7632
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
*************************************************************************
|
*************************************************************************
|
||||||
** Internal interface definitions for SQLite.
|
** Internal interface definitions for SQLite.
|
||||||
**
|
**
|
||||||
** @(#) $Id: sqliteInt.h,v 1.611 2007/10/01 14:30:15 drh Exp $
|
** @(#) $Id: sqliteInt.h,v 1.612 2007/10/01 17:47:00 drh Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef _SQLITEINT_H_
|
#ifndef _SQLITEINT_H_
|
||||||
#define _SQLITEINT_H_
|
#define _SQLITEINT_H_
|
||||||
@@ -59,13 +59,32 @@
|
|||||||
extern int sqlite3MAX_LIKE_PATTERN_LENGTH;
|
extern int sqlite3MAX_LIKE_PATTERN_LENGTH;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
** The SQLITE_THREADSAFE macro must be defined as either 0 or 1.
|
||||||
|
** Older versions of SQLite used an optional THREADSAFE macro.
|
||||||
|
** We support that for legacy
|
||||||
|
*/
|
||||||
|
#if !defined(SQLITE_THREADSAFE)
|
||||||
|
#if defined(THREADSAFE)
|
||||||
|
# define SQLITE_THREADSAFE THREADSAFE
|
||||||
|
#else
|
||||||
|
# define SQLITE_THREADSAFE 1
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** We need to define _XOPEN_SOURCE as follows in order to enable
|
** We need to define _XOPEN_SOURCE as follows in order to enable
|
||||||
** recursive mutexes on most unix systems. But Mac OS X is different.
|
** 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,
|
** The _XOPEN_SOURCE define causes problems for Mac OS X we are told,
|
||||||
** so it is omitted there. See ticket #2673.
|
** so it is omitted there. See ticket #2673.
|
||||||
|
**
|
||||||
|
** Later we learn that _XOPEN_SOURCE is poorly or incorrectly
|
||||||
|
** implemented on some systems. So we avoid defining it at all
|
||||||
|
** if it is already defined or if it is unneeded because we are
|
||||||
|
** not doing a threadsafe build. Ticket #2681.
|
||||||
*/
|
*/
|
||||||
#ifndef __MACOS__
|
#if !defined(_XOPEN_SOURCE) && !defined(__MACOS__) && SQLITE_THREADSAFE
|
||||||
# define _XOPEN_SOURCE 500 /* Needed to enable pthread recursive mutexes */
|
# define _XOPEN_SOURCE 500 /* Needed to enable pthread recursive mutexes */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -84,19 +103,6 @@
|
|||||||
# define NDEBUG 1
|
# define NDEBUG 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
** The SQLITE_THREADSAFE macro must be defined as either 0 or 1.
|
|
||||||
** Older versions of SQLite used an optional THREADSAFE macro.
|
|
||||||
** We support that for legacy
|
|
||||||
*/
|
|
||||||
#if !defined(SQLITE_THREADSAFE)
|
|
||||||
#if defined(THREADSAFE)
|
|
||||||
# define SQLITE_THREADSAFE THREADSAFE
|
|
||||||
#else
|
|
||||||
# define SQLITE_THREADSAFE 1
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** These #defines should enable >2GB file support on Posix if the
|
** These #defines should enable >2GB file support on Posix if the
|
||||||
** underlying operating system supports it. If the OS lacks
|
** underlying operating system supports it. If the OS lacks
|
||||||
|
|||||||
Reference in New Issue
Block a user