/ Check-in [61a10452]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Set _XOPEN_SOURCE to 600 so that fchmod() will (hopefully) work on FreeBSD.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:61a10452399db28cd5ea4ba9d416b87a34c2eddb
User & Date: drh 2013-05-24 12:47:26
Context
2013-05-27
10:11
When writing to an FTS table, take an exclusive shared-cache lock on the %_segdir table before writing. Otherwise, an xCommit() call may report an SQLITE_LOCKED error. check-in: 3cd2da42 user: dan tags: trunk
2013-05-24
13:55
Merge the latest trunk changes into the NGQP branch. check-in: 7c8f992c user: drh tags: nextgen-query-plan-exp
12:47
Set _XOPEN_SOURCE to 600 so that fchmod() will (hopefully) work on FreeBSD. check-in: 61a10452 user: drh tags: trunk
11:57
Fix harmless compiler warnings in the shell. check-in: 9e2c17c5 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqliteInt.h.

   189    189   */
   190    190   #if !defined(SQLITE_MALLOC_SOFT_LIMIT)
   191    191   # define SQLITE_MALLOC_SOFT_LIMIT 1024
   192    192   #endif
   193    193   
   194    194   /*
   195    195   ** We need to define _XOPEN_SOURCE as follows in order to enable
   196         -** recursive mutexes on most Unix systems.  But Mac OS X is different.
   197         -** The _XOPEN_SOURCE define causes problems for Mac OS X we are told,
   198         -** so it is omitted there.  See ticket #2673.
   199         -**
   200         -** Later we learn that _XOPEN_SOURCE is poorly or incorrectly
   201         -** implemented on some systems.  So we avoid defining it at all
   202         -** if it is already defined or if it is unneeded because we are
   203         -** not doing a threadsafe build.  Ticket #2681.
   204         -**
   205         -** See also ticket #2741.
          196  +** recursive mutexes on most Unix systems and fchmod() on OpenBSD.
          197  +** But _XOPEN_SOURCE define causes problems for Mac OS X, so omit
          198  +** it.
   206    199   */
   207         -#if !defined(_XOPEN_SOURCE) && !defined(__DARWIN__) \
   208         - && !defined(__APPLE__) && SQLITE_THREADSAFE
   209         -#  define _XOPEN_SOURCE 500  /* Needed to enable pthread recursive mutexes */
          200  +#if !defined(_XOPEN_SOURCE) && !defined(__DARWIN__) && !defined(__APPLE__)
          201  +#  define _XOPEN_SOURCE 600
   210    202   #endif
   211    203   
   212    204   /*
   213    205   ** The TCL headers are only needed when compiling the TCL bindings.
   214    206   */
   215    207   #if defined(SQLITE_TCL) || defined(TCLSH)
   216    208   # include <tcl.h>