diff options
author | mistachkin <mistachkin@noemail.net> | 2013-01-17 03:18:14 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2013-01-17 03:18:14 +0000 |
commit | 413c63ba81122f7bb67cf05115c5534f9cb4b5a0 (patch) | |
tree | 7189db2d46ef18a6b56bf073ef795ba9dc6644c0 /src | |
parent | 7fe18b41052f11f68d21672f2ec65db0a1f761cf (diff) | |
download | sqlite-413c63ba81122f7bb67cf05115c5534f9cb4b5a0.tar.gz sqlite-413c63ba81122f7bb67cf05115c5534f9cb4b5a0.zip |
Make the 'fs' virtual table module portable to Windows.
FossilOrigin-Name: dd473cae5b6ea02b73168b30365f0af5556ee24d
Diffstat (limited to 'src')
-rw-r--r-- | src/test_fs.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test_fs.c b/src/test_fs.c index 9678005c8..532f92528 100644 --- a/src/test_fs.c +++ b/src/test_fs.c @@ -37,9 +37,15 @@ #include <string.h> #include <sys/types.h> #include <sys/stat.h> -#include <unistd.h> #include <fcntl.h> +#if SQLITE_OS_UNIX +# include <unistd.h> +#endif +#if SQLITE_OS_WIN +# include <io.h> +#endif + #ifndef SQLITE_OMIT_VIRTUALTABLE typedef struct fs_vtab fs_vtab; |