diff options
author | Andrew Dunstan | 2006-12-18 14:17:41 +0000 |
---|---|---|
committer | Andrew Dunstan | 2006-12-18 14:17:41 +0000 |
commit | 9ba64e55954d4ce38ca798b67c1c98114d177e6e (patch) | |
tree | f165a8a3ac1152e8886e58afe4c84f7c73eb30f7 | |
parent | 7b6503c2cec4d6b7807c35e03e696efd3b3ca0ae (diff) |
fix thinko in placement of TimeValStruct typedef in Windows case, as reported by Magnus.
-rw-r--r-- | src/bin/psql/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/common.h b/src/bin/psql/common.h index b284e44006..0018a60da6 100644 --- a/src/bin/psql/common.h +++ b/src/bin/psql/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 + \ |