/ Check-in [f9027cb4]
Login

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

Overview
Comment:Define _BSD_SOURCE when building on OpenBSD. This is required for fchmod().
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:f9027cb47bdec8dcebf1f038921b28d9e9928c18
User & Date: dan 2013-03-11 13:37:52
Context
2013-03-12
23:03
Fix typo in sqlite3_close() function documentation reported on the mailing list. check-in: c9a75d89 user: mistachkin tags: trunk
20:58
Fix typo in sqlite3_close() function documentation reported on the mailing list. Closed-Leaf check-in: 7232093d user: mistachkin tags: docTypo
18:34
A proposed fix for the DESC ORDER BY bug of ticket [4dd95f6943fbd18]. Seems to work, but lots more testing is needed prior to moving to trunk. check-in: 614a038a user: drh tags: desc-orderby-fix-1
11:38
Merge recent changes to trunk into sessions branch. check-in: 62adb0e0 user: dan tags: sessions
2013-03-11
13:37
Define _BSD_SOURCE when building on OpenBSD. This is required for fchmod(). check-in: f9027cb4 user: dan tags: trunk
11:57
Fixes for compiling with SQLITE_OMIT_AUTOVACUUM and/or SQLITE_OMIT_TRIGGER defined. check-in: 1da15adb user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqliteInt.h.

    61     61   #pragma warn -spa /* Suspicious pointer arithmetic */
    62     62   #endif
    63     63   
    64     64   /* Needed for various definitions... */
    65     65   #ifndef _GNU_SOURCE
    66     66   # define _GNU_SOURCE
    67     67   #endif
           68  +
           69  +#if defined(__OpenBSD__) && !defined(_BSD_SOURCE)
           70  +# define _BSD_SOURCE
           71  +#endif
    68     72   
    69     73   /*
    70     74   ** Include standard header files as necessary
    71     75   */
    72     76   #ifdef HAVE_STDINT_H
    73     77   #include <stdint.h>
    74     78   #endif