diff options
author | drh <drh@noemail.net> | 2017-10-25 16:14:12 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-10-25 16:14:12 +0000 |
commit | b5d013edd1f7fe1623b5951bb4664f6b23638f2f (patch) | |
tree | 4b5128b14f0834aff297ac8296cfebde9a2ec527 /src/os_unix.c | |
parent | 98d529b5411816e75a038f10e4666c20a42a7628 (diff) | |
download | sqlite-b5d013edd1f7fe1623b5951bb4664f6b23638f2f.tar.gz sqlite-b5d013edd1f7fe1623b5951bb4664f6b23638f2f.zip |
Do not reference the ioctl() system call in the unix backend unless it
is actually needed by the Batch Atomic Write extension. This should allow
the build to work on VxWorks.
FossilOrigin-Name: adfa7ed2de3e833fff65935455e71236a59602aaf7b97ece667ab300dca9f673
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 4445104dd..c33d21fd9 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -513,7 +513,11 @@ static struct unix_syscall { #endif #define osLstat ((int(*)(const char*,struct stat*))aSyscall[27].pCurrent) +#if defined(__linux__) && defined(SQLITE_ENABLE_BATCH_ATOMIC_WRITE) { "ioctl", (sqlite3_syscall_ptr)ioctl, 0 }, +#else + { "ioctl", (sqlite3_syscall_ptr)0, 0 }, +#endif #define osIoctl ((int(*)(int,int,...))aSyscall[28].pCurrent) }; /* End of the overrideable system calls */ |