Re: psql patch

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: "Jeroen T(dot) Vermeulen" <jtv(at)xs4all(dot)nl>, pgsql-patches(at)postgresql(dot)org
Subject: Re: psql patch
Date: 2003-03-25 22:01:33
Message-ID: 200303252201.h2PM1Xc02936@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Jeroen, did you see this request?

---------------------------------------------------------------------------

Peter Eisentraut wrote:
> Configure already has provisions for the single-argument gettimeofday
> form. Please use that and remove the code below.
>
>
> Jeroen T. Vermeulen writes:
>
> +
> + /* Workarounds for Windows */
> + /* Probably to be moved up the source tree in the future, perhaps to be
> replaced by
> + * more specific checks like configure-style HAVE_GETTIMEOFDAY macros.
> + */
> + #ifndef WIN32
> +
> + typedef struct timeval TimevalStruct;
> + #define GETTIMEOFDAY(T) gettimeofday(T, NULL)
> + #define DIFF_MSEC(T, U) ((((T)->tv_sec - (U)->tv_sec) * 1000000.0 +
> (T)->tv_usec -
> (U)->tv_usec) / 1000.0)
> +
> + #else
> +
> + typedef struct _timeb TimevalStruct;
> + #define GETTIMEOFDAY(T) _ftime(&T)
> + #define DIFF_MSEC(T, U) ((((T)->time - (U)->time) * 1000.0 +
> (T)->millitm -
> (U)->millitm))
> +
> + #endif
> +
> +
>
> --
> Peter Eisentraut peter_e(at)gmx(dot)net
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-03-25 22:02:20 Re: psql / tab-completion.c : patch proposals
Previous Message Bruce Momjian 2003-03-25 19:37:04 Re: plpython test change...