/ Check-in [7d8d3252]
Login

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

Overview
Comment:Make the compile work under cygwin. Tickets #327, #213, #316, #322, #349, #373, and #429. (CVS 1075)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7d8d3252df1e9f6bec5e105b6eca3313cb7e226a
User & Date: drh 2003-08-16 13:10:52
Context
2003-08-19
14:31
Add the "onecolumn" method to the TCL language bindings. (CVS 1076) check-in: c7b4c28f user: drh tags: trunk
2003-08-16
13:10
Make the compile work under cygwin. Tickets #327, #213, #316, #322, #349, #373, and #429. (CVS 1075) check-in: 7d8d3252 user: drh tags: trunk
12:37
Do not delete tables with the same name when dropping triggers. Ticket #430. (CVS 1074) check-in: ef58f163 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os.h.

    84     84   #  endif
    85     85   # else
    86     86   #  define OS_MAC 0
    87     87   #  define OS_UNIX 0
    88     88   # endif
    89     89   #else
    90     90   # define OS_MAC 0
    91         -# define OS_WIN 0
           91  +# ifndef OS_WIN
           92  +#  define OS_WIN 0
           93  +# endif
    92     94   #endif
    93     95   
    94     96   /*
    95     97   ** A handle for an open file is stored in an OsFile object.
    96     98   */
    97     99   #if OS_UNIX
    98    100   # include <sys/types.h>
................................................................................
   111    113   #  define SQLITE_MIN_SLEEP_MS 1
   112    114   # else
   113    115   #  define SQLITE_MIN_SLEEP_MS 1000
   114    116   # endif
   115    117   #endif
   116    118   
   117    119   #if OS_WIN
          120  +# if defined(__CYGWIN__)
          121  +#  define __CYGWIN_USE_BIG_TYPES__
          122  +# endif
   118    123   #include <windows.h>
   119    124   #include <winbase.h>
   120    125     typedef struct OsFile OsFile;
   121    126     struct OsFile {
   122    127       HANDLE h;               /* Handle for accessing the file */
   123    128       int locked;             /* 0: unlocked, <0: write lock, >0: read lock */
   124    129     };
   125    130   # if defined(_MSC_VER) || defined(__BORLANDC__)
   126    131       typedef __int64 off_t;
   127    132   # else
   128         -    typedef long long off_t;
          133  +#  if !defined(_CYGWIN_TYPES_H)
          134  +     typedef long long off_t;
          135  +#  endif
   129    136   # endif
   130    137   # define SQLITE_TEMPNAME_SIZE (MAX_PATH+50)
   131    138   # define SQLITE_MIN_SLEEP_MS 1
   132    139   #endif
   133    140   
   134    141   #if OS_MAC
   135    142   # include <unistd.h>