diff options
author | drh <drh@noemail.net> | 2007-10-23 15:59:18 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2007-10-23 15:59:18 +0000 |
commit | 9e0ebbfa41445a2ad4b6e563ddea41f6ac40469c (patch) | |
tree | d5a5c4a3eb0c452c15f39c033a1afad11bda12be /src/os_unix.c | |
parent | 71674ce9ce95680c94d44de12493aedaad7e5536 (diff) | |
download | sqlite-9e0ebbfa41445a2ad4b6e563ddea41f6ac40469c.tar.gz sqlite-9e0ebbfa41445a2ad4b6e563ddea41f6ac40469c.zip |
Add comments to the code warning that _XOPEN_SOURCE might need to be
defined manually if using USE_PREAD or USE_PREAD64. (CVS 4509)
FossilOrigin-Name: d7ed7cd077fe5f9ffba2bca48b84b231ccfd85b0
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index e95435e74..f4dc24f04 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -772,6 +772,12 @@ static int transferOwnership(unixFile *pFile){ /* ** Seek to the offset passed as the second argument, then read cnt ** bytes into pBuf. Return the number of bytes actually read. +** +** NB: If you define USE_PREAD or USE_PREAD64, then it might also +** be necessary to define _XOPEN_SOURCE to be 500. This varies from +** one system to another. Since SQLite does not define USE_PREAD +** any any form by default, we will not attempt to define _XOPEN_SOURCE. +** See tickets #2741 and #2681. */ static int seekAndRead(unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt){ int got; |