diff options
author | drh <drh@noemail.net> | 2011-04-17 17:09:58 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-04-17 17:09:58 +0000 |
commit | 1c4e6037276dfe6ce16da892f64908c58e515d41 (patch) | |
tree | e3a59c939fc1b5ca3f438107e9b615920180ca19 /src/os_unix.c | |
parent | 35913a49db825824a7c557f89e46dcb127f723cc (diff) | |
download | sqlite-1c4e6037276dfe6ce16da892f64908c58e515d41.tar.gz sqlite-1c4e6037276dfe6ce16da892f64908c58e515d41.zip |
Change the prototype for the open() system call to agree with Posix. Though
a faulty function prototype in a pointer cast is a seemingly innocuous error,
the correct prototype is necessary for pthreads to work correctly on NetBSD.
FossilOrigin-Name: 3e135748f1efacb52b414b3ac3f4ae2c08bcd8fb
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 48613b420..2d3a61637 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -293,7 +293,7 @@ static struct unix_syscall { sqlite3_syscall_ptr pDefault; /* Default value */ } aSyscall[] = { { "open", (sqlite3_syscall_ptr)open, 0 }, -#define osOpen ((int(*)(const char*,int,int))aSyscall[0].pCurrent) +#define osOpen ((int(*)(const char*,int,...))aSyscall[0].pCurrent) { "close", (sqlite3_syscall_ptr)close, 0 }, #define osClose ((int(*)(int))aSyscall[1].pCurrent) |