aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-04-11 15:36:26 +0000
committerdrh <drh@noemail.net>2011-04-11 15:36:26 +0000
commitc6e4172a126ddf5e39744639bd5a18b521fb01cf (patch)
treec149b533b75d0fe05d80f32011108c4c6508e321 /src/shell.c
parent68bf06716d7a969f78823c7a3b0f5ecfff5c8a71 (diff)
downloadsqlite-c6e4172a126ddf5e39744639bd5a18b521fb01cf.tar.gz
sqlite-c6e4172a126ddf5e39744639bd5a18b521fb01cf.zip
Updates to the OS/2 patches. This change also move the location of a global
variable declaration in shell.c which might effect other build targets. FossilOrigin-Name: 73906b67dc920e0c36e68ef9a302be3b495e8e3a
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/shell.c b/src/shell.c
index 4f34ccceb..aab70b29d 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -71,6 +71,9 @@ extern int isatty();
#define isatty(x) 1
#endif
+/* True if the timer is enabled */
+static int enableTimer = 0;
+
#if !defined(_WIN32) && !defined(WIN32) && !defined(__OS2__) && !defined(__RTP__) && !defined(_WRS_KERNEL)
#include <sys/time.h>
#include <sys/resource.h>
@@ -78,9 +81,6 @@ extern int isatty();
/* Saved resource information for the beginning of an operation */
static struct rusage sBegin;
-/* True if the timer is enabled */
-static int enableTimer = 0;
-
/*
** Begin timing an operation
*/
@@ -124,9 +124,6 @@ static FILETIME ftUserBegin;
typedef BOOL (WINAPI *GETPROCTIMES)(HANDLE, LPFILETIME, LPFILETIME, LPFILETIME, LPFILETIME);
static GETPROCTIMES getProcessTimesAddr = NULL;
-/* True if the timer is enabled */
-static int enableTimer = 0;
-
/*
** Check to see if we have timer support. Return 1 if necessary
** support found (or found previously).