diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2006-12-18 14:17:41 +0000 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2006-12-18 14:17:41 +0000 |
commit | 6b4fe0460cac52973c16c279cfc5d89b066c1fe0 (patch) | |
tree | 9a67f69f91e1e3864a94edbbe649c763254e7e69 | |
parent | cdcee165889b42d617a42958b17fd08befe8fe6c (diff) | |
download | postgresql-6b4fe0460cac52973c16c279cfc5d89b066c1fe0.tar.gz postgresql-6b4fe0460cac52973c16c279cfc5d89b066c1fe0.zip |
fix thinko in placement of TimeValStruct typedef in Windows case, as reported by Magnus.
-rw-r--r-- | src/bin/psql/common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/common.h b/src/bin/psql/common.h index 3802333e602..15116acde9c 100644 --- a/src/bin/psql/common.h +++ b/src/bin/psql/common.h @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2006, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.52 2006/12/16 00:38:43 adunstan Exp $ + * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.53 2006/12/18 14:17:41 adunstan Exp $ */ #ifndef COMMON_H #define COMMON_H @@ -79,11 +79,11 @@ typedef struct timeval TimevalStruct; ((int) ((T)->tv_usec - (U)->tv_usec))) / 1000.0) #else -typedef struct _timeb TimevalStruct; - #include <sys/types.h> #include <sys/timeb.h> +typedef struct _timeb TimevalStruct; + #define GETTIMEOFDAY(T) _ftime(T) #define DIFF_MSEC(T, U) \ (((T)->time - (U)->time) * 1000.0 + \ |