Index: src/os.h ================================================================== --- src/os.h +++ src/os.h @@ -86,11 +86,13 @@ # define OS_MAC 0 # define OS_UNIX 0 # endif #else # define OS_MAC 0 -# define OS_WIN 0 +# ifndef OS_WIN +# define OS_WIN 0 +# endif #endif /* ** A handle for an open file is stored in an OsFile object. */ @@ -113,10 +115,13 @@ # define SQLITE_MIN_SLEEP_MS 1000 # endif #endif #if OS_WIN +# if defined(__CYGWIN__) +# define __CYGWIN_USE_BIG_TYPES__ +# endif #include #include typedef struct OsFile OsFile; struct OsFile { HANDLE h; /* Handle for accessing the file */ @@ -123,11 +128,13 @@ int locked; /* 0: unlocked, <0: write lock, >0: read lock */ }; # if defined(_MSC_VER) || defined(__BORLANDC__) typedef __int64 off_t; # else - typedef long long off_t; +# if !defined(_CYGWIN_TYPES_H) + typedef long long off_t; +# endif # endif # define SQLITE_TEMPNAME_SIZE (MAX_PATH+50) # define SQLITE_MIN_SLEEP_MS 1 #endif