mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Add #ifdef logic to os_unix.c so that it builds with SQLITE_OMIT_WAL defined.
FossilOrigin-Name: 948c2cb2a2f44ba069cfbf5e9a57e56964f3a40db57459bb439bea9c3bd9f211
This commit is contained in:
@@ -3951,7 +3951,9 @@ static void unixModeBit(unixFile *pFile, unsigned char mask, int *pArg){
|
||||
|
||||
/* Forward declaration */
|
||||
static int unixGetTempname(int nBuf, char *zBuf);
|
||||
static int unixFcntlExternalReader(unixFile*, int*);
|
||||
#ifndef SQLITE_OMIT_WAL
|
||||
static int unixFcntlExternalReader(unixFile*, int*);
|
||||
#endif
|
||||
|
||||
/*
|
||||
** Information and control of an open file handle.
|
||||
@@ -4070,7 +4072,12 @@ static int unixFileControl(sqlite3_file *id, int op, void *pArg){
|
||||
#endif /* SQLITE_ENABLE_LOCKING_STYLE && defined(__APPLE__) */
|
||||
|
||||
case SQLITE_FCNTL_EXTERNAL_READER: {
|
||||
#ifndef SQLITE_OMIT_WAL
|
||||
return unixFcntlExternalReader((unixFile*)id, (int*)pArg);
|
||||
#else
|
||||
*(int*)pArg = 0;
|
||||
return SQLITE_OK;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
return SQLITE_NOTFOUND;
|
||||
|
||||
Reference in New Issue
Block a user