/ Check-in [b3eb1732]
Login

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

Overview
Comment:Include io.h on Windows to quell a build warning about access() having no prototype. (CVS 3394)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b3eb1732bd529b14bef1872171a3c6429e209d31
User & Date: adamd 2006-09-06 21:39:40
Context
2006-09-08
11:56
Improvements to the documentation of the return codes for sqlite3_step(). Tickets #1633, #1366, #1178, #906, and probably others too. (CVS 3395) check-in: 508248e7 user: drh tags: trunk
2006-09-06
21:39
Include io.h on Windows to quell a build warning about access() having no prototype. (CVS 3394) check-in: b3eb1732 user: adamd tags: trunk
2006-09-05
18:21
A minor change to fts1.c to fix broken build. (CVS 3393) check-in: 55a03b96 user: adamd tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code to implement the "sqlite" command line
    13     13   ** utility for accessing SQLite databases.
    14     14   **
    15         -** $Id: shell.c,v 1.147 2006/08/29 12:04:19 drh Exp $
           15  +** $Id: shell.c,v 1.148 2006/09/06 21:39:40 adamd Exp $
    16     16   */
    17     17   #include <stdlib.h>
    18     18   #include <string.h>
    19     19   #include <stdio.h>
    20     20   #include <assert.h>
    21     21   #include "sqlite3.h"
    22     22   #include <ctype.h>
................................................................................
    48     48   # define readline(p) local_getline(p,stdin)
    49     49   # define add_history(X)
    50     50   # define read_history(X)
    51     51   # define write_history(X)
    52     52   # define stifle_history(X)
    53     53   #endif
    54     54   
           55  +#if defined(_WIN32) || defined(WIN32)
           56  +# include <io.h>
           57  +#else
    55     58   /* Make sure isatty() has a prototype.
    56     59   */
    57     60   extern int isatty();
           61  +#endif
    58     62   
    59     63   /*
    60     64   ** The following is the open SQLite database.  We make a pointer
    61     65   ** to this database a static variable so that it can be accessed
    62     66   ** by the SIGINT handler to interrupt database processing.
    63     67   */
    64     68   static sqlite3 *db = 0;