/ Check-in [dd473cae]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make the 'fs' virtual table module portable to Windows.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fsVfsWin
Files: files | file ages | folders
SHA1:dd473cae5b6ea02b73168b30365f0af5556ee24d
User & Date: mistachkin 2013-01-17 03:18:14
Context
2013-01-17
03:18
Enhance RTree virtual table creation error messages that involve the getNodeSize() function. Closed-Leaf check-in: 652233d6 user: mistachkin tags: rtreeErrMsg
03:18
Make the 'fs' virtual table module portable to Windows. Closed-Leaf check-in: dd473cae user: mistachkin tags: fsVfsWin
2013-01-16
20:33
Fix the activate_extensions pragma so that it is a no-op when the required argument is omitted. check-in: 6195ebd8 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Makefile.msc.

   674    674     $(TOP)\src\test_autoext.c \
   675    675     $(TOP)\src\test_async.c \
   676    676     $(TOP)\src\test_backup.c \
   677    677     $(TOP)\src\test_btree.c \
   678    678     $(TOP)\src\test_config.c \
   679    679     $(TOP)\src\test_demovfs.c \
   680    680     $(TOP)\src\test_devsym.c \
          681  +  $(TOP)\src\test_fs.c \
   681    682     $(TOP)\src\test_func.c \
   682    683     $(TOP)\src\test_fuzzer.c \
   683    684     $(TOP)\src\test_hexio.c \
   684    685     $(TOP)\src\test_init.c \
   685    686     $(TOP)\src\test_intarray.c \
   686    687     $(TOP)\src\test_journal.c \
   687    688     $(TOP)\src\test_malloc.c \

Changes to src/test_fs.c.

    33     33   #include "sqliteInt.h"
    34     34   #include "tcl.h"
    35     35   
    36     36   #include <stdlib.h>
    37     37   #include <string.h>
    38     38   #include <sys/types.h>
    39     39   #include <sys/stat.h>
    40         -#include <unistd.h>
    41     40   #include <fcntl.h>
           41  +
           42  +#if SQLITE_OS_UNIX
           43  +# include <unistd.h>
           44  +#endif
           45  +#if SQLITE_OS_WIN
           46  +# include <io.h>
           47  +#endif
    42     48   
    43     49   #ifndef SQLITE_OMIT_VIRTUALTABLE
    44     50   
    45     51   typedef struct fs_vtab fs_vtab;
    46     52   typedef struct fs_cursor fs_cursor;
    47     53   
    48     54   /*