2021-05-14 09:07:09 +00:00
|
|
|
/*
|
|
|
|
** 2015-03-02
|
|
|
|
**
|
|
|
|
** The author disclaims copyright to this source code. In place of
|
|
|
|
** a legal notice, here is a blessing:
|
|
|
|
**
|
|
|
|
** May you do good and not evil.
|
|
|
|
** May you find forgiveness for yourself and forgive others.
|
|
|
|
** May you share freely, never taking more than you give.
|
|
|
|
**
|
|
|
|
******************************************************************************
|
|
|
|
**
|
|
|
|
** This file contains code that is specific to Wind River's VxWorks
|
|
|
|
*/
|
|
|
|
#if defined(__RTP__) || defined(_WRS_KERNEL)
|
|
|
|
/* This is VxWorks. Set up things specially for that OS
|
2022-11-28 20:54:48 +00:00
|
|
|
*/
|
2021-05-14 09:07:09 +00:00
|
|
|
#include <vxWorks.h>
|
2022-11-28 20:54:48 +00:00
|
|
|
#include <pthread.h> /* amalgamator: dontcache */
|
|
|
|
#define OS_VXWORKS 1
|
|
|
|
#define SQLITE_OS_OTHER 0
|
2021-05-14 09:07:09 +00:00
|
|
|
#define SQLITE_HOMEGROWN_RECURSIVE_MUTEX 1
|
2022-11-28 20:54:48 +00:00
|
|
|
#define SQLITE_OMIT_LOAD_EXTENSION 1
|
|
|
|
#define SQLITE_ENABLE_LOCKING_STYLE 0
|
|
|
|
#define HAVE_UTIME 1
|
2021-05-14 09:07:09 +00:00
|
|
|
#else
|
|
|
|
/* This is not VxWorks. */
|
2022-11-28 20:54:48 +00:00
|
|
|
#define OS_VXWORKS 0
|
|
|
|
#define HAVE_FCHOWN 1
|
2021-05-14 09:07:09 +00:00
|
|
|
#define HAVE_READLINK 1
|
2022-11-28 20:54:48 +00:00
|
|
|
#define HAVE_LSTAT 1
|
2021-05-14 09:07:09 +00:00
|
|
|
#endif /* defined(_WRS_KERNEL) */
|