aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2013-06-21 18:32:11 +0000
committermistachkin <mistachkin@noemail.net>2013-06-21 18:32:11 +0000
commitf5fe3ae9e6ec813a0f015c990ddac7349a933467 (patch)
treefe707c5648260e826cb61bd85e9f08501ff2ca4c /src/sqliteInt.h
parent1654256ac892447558ff0587de76d5b53ac2b6f5 (diff)
parentb01e5b59a2e471d468e1854ef4de4b8f54f3bd6c (diff)
downloadsqlite-f5fe3ae9e6ec813a0f015c990ddac7349a933467.tar.gz
sqlite-f5fe3ae9e6ec813a0f015c990ddac7349a933467.zip
Merge updates from trunk.
FossilOrigin-Name: fa2a91e6c631864846484d13cffdc51856953cd1
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 6b64a58a3..17d26f4b0 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -114,7 +114,7 @@
** The SQLITE_THREADSAFE macro must be defined as 0, 1, or 2.
** 0 means mutexes are permanently disable and the library is never
** threadsafe. 1 means the library is serialized which is the highest
-** level of threadsafety. 2 means the libary is multithreaded - multiple
+** level of threadsafety. 2 means the library is multithreaded - multiple
** threads can use SQLite as long as no two threads try to use the same
** database connection at the same time.
**
@@ -193,20 +193,12 @@
/*
** 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.
-**
-** 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.
-**
-** See also ticket #2741.
+** recursive mutexes on most Unix systems and fchmod() on OpenBSD.
+** But _XOPEN_SOURCE define causes problems for Mac OS X, so omit
+** it.
*/
-#if !defined(_XOPEN_SOURCE) && !defined(__DARWIN__) \
- && !defined(__APPLE__) && SQLITE_THREADSAFE
-# define _XOPEN_SOURCE 500 /* Needed to enable pthread recursive mutexes */
+#if !defined(_XOPEN_SOURCE) && !defined(__DARWIN__) && !defined(__APPLE__)
+# define _XOPEN_SOURCE 600
#endif
/*
@@ -758,7 +750,6 @@ typedef struct WhereLevel WhereLevel;
struct Db {
char *zName; /* Name of this database */
Btree *pBt; /* The B*Tree structure for this database file */
- u8 inTrans; /* 0: not writable. 1: Transaction. 2: Checkpoint */
u8 safety_level; /* How aggressive at syncing data to disk */
Schema *pSchema; /* Pointer to database schema (possibly shared) */
};