aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-02-19 16:34:31 +0000
committerdrh <drh@noemail.net>2018-02-19 16:34:31 +0000
commit26f625fbf4b293012f2a3ff4b8127faadc787c66 (patch)
treec586027c917b982daa89f8efb6ec9bb94c911fa0 /src/os_unix.c
parenta224ee2a1b12450014aa4ae1e0e85316efcf39c4 (diff)
downloadsqlite-26f625fbf4b293012f2a3ff4b8127faadc787c66.tar.gz
sqlite-26f625fbf4b293012f2a3ff4b8127faadc787c66.zip
Only try to use the geteuid() interface on unix if HAVE_FCHOWN is defined.
This fixes the build for vxWorks, we are told. FossilOrigin-Name: 38f654dc117bb11d61407327884b5c913cfaf920547bebc4ce5a4cf983e5c20e
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index b24c6861d..cb2ae33d0 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -468,7 +468,11 @@ static struct unix_syscall {
#endif
#define osFchown ((int(*)(int,uid_t,gid_t))aSyscall[20].pCurrent)
+#if defined(HAVE_FCHOWN)
{ "geteuid", (sqlite3_syscall_ptr)geteuid, 0 },
+#else
+ { "geteuid", (sqlite3_syscall_ptr)0, 0 },
+#endif
#define osGeteuid ((uid_t(*)(void))aSyscall[21].pCurrent)
#if !defined(SQLITE_OMIT_WAL) || SQLITE_MAX_MMAP_SIZE>0