xref: /sqlite-3.40.0/src/vxworks.h (revision af1b36b1)
1 /*
2 ** 2015-03-02
3 **
4 ** The author disclaims copyright to this source code.  In place of
5 ** a legal notice, here is a blessing:
6 **
7 **    May you do good and not evil.
8 **    May you find forgiveness for yourself and forgive others.
9 **    May you share freely, never taking more than you give.
10 **
11 ******************************************************************************
12 **
13 ** This file contains code that is specific to Wind River's VxWorks
14 */
15 #if defined(__RTP__) || defined(_WRS_KERNEL)
16 /* This is VxWorks.  Set up things specially for that OS
17 */
18 #include <vxWorks.h>
19 #include <pthread.h>  /* amalgamator: dontcache */
20 #define OS_VXWORKS 1
21 #define SQLITE_OS_OTHER 0
22 #define SQLITE_HOMEGROWN_RECURSIVE_MUTEX 1
23 #define SQLITE_OMIT_LOAD_EXTENSION 1
24 #define SQLITE_ENABLE_LOCKING_STYLE 0
25 #define HAVE_UTIME 1
26 #else
27 /* This is not VxWorks. */
28 #define OS_VXWORKS 0
29 #define HAVE_FCHOWN 1
30 #define HAVE_READLINK 1
31 #define HAVE_LSTAT 1
32 #endif /* defined(_WRS_KERNEL) */
33