Re: GETTIMEOFDAY_1ARG change

From: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
To: Ulrich Neumann <u_neumann(at)gne(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: GETTIMEOFDAY_1ARG change
Date: 2002-01-08 15:00:11
Message-ID: 3C3B097B.E91AFFEB@fourpalms.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> i would like to add the following changes to the code so that postgres
> doesn´t have any problems if we compile it on machines that have
> gettimeofday with 1 ARG and therefore don´t need 'struct timezone xxx'
> I´m working on a System where timezone is defined in another way.

What system? How is timezone defined for that system? Is it something
completely new and different, or a variant which we already handle in
other places but not for this case?

...
> 2.postgres.c
> ResetUsage(void)
> {
> #ifndef GETTIMEOFDAY_1ARG
> struct timezone tz;
> #endif
>
> getrusage(RUSAGE_SELF, &Save_r);
> gettimeofday(&Save_t, &tz);
...

So what "one argument" does gettimeofday() have? Where does "tz" come
from if it is not defined here? Does it become a global variable? Where
is it declared?

afaik the nabstime.c usage of gettimeofday() has been in the PostgreSQL
code for quite a while, so I'm suprised that this is a problem on the
new mystery platform ;)

- Thomas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Holger Krug 2002-01-08 15:11:24 Re: JDBC: why is PGobject class instead of interface?
Previous Message mlw 2002-01-08 14:46:52 Re: RC1 time?