From cea7ca7af25da1c8ffa37775af0f5cee90cce2dd Mon Sep 17 00:00:00 2001 From: "D. Richard Hipp" Date: Wed, 25 Oct 2017 16:14:12 +0000 Subject: [PATCH] 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. --- src/os_unix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/os_unix.c b/src/os_unix.c index 4445104dd6..c33d21fd9b 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 */ -- 2.11.4.GIT