Received: from mail.gne.de (mail.gne.de [213.83.0.2]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g08Il9B29009 for ; Tue, 8 Jan 2002 13:47:09 -0500 (EST) (envelope-from U_Neumann@gne.de) Received: from DO5GNE-MTA by mail.gne.de with Novell_GroupWise; Tue, 08 Jan 2002 19:46:56 +0100 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.0.1 Date: Tue, 08 Jan 2002 19:46:36 +0100 From: "Ulrich Neumann" To: Cc: Subject: Antw: Re: GETTIMEOFDAY_1ARG change Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_E1BCEBB0.84E58BB0" X-Guinevere: 1.0.14 ; GNE Grebe Neumann Gl X-Archive-Number: 200201/340 X-Sequence-Number: 17382 --=_E1BCEBB0.84E58BB0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline Hi Thomas, i m working on postgres for 2 new platforms, NetWare 6 and a future 64 bit OS that is under development. On NetWare timezone is defined as a global variable, seconds from GMT. But wait, gettimeofday will be added to NetWare so there isn t any change neccessary anymore. On the other hand the struct isn t used in the mentioned functions, so for "correctness" it could be added. Thanks for your answers Ulrich Neumann Ulrich Neumann _______________________________________________________ _ _ | _ |\ | |_ GNE GmbH - Brechhoferstr. 1 - 56316 Raubach |_| | \| |_ http://www.gne.de, Tel.: +49 2684-9454-0, Fax -94, David: -71 GNE Hostmaster (hostmaster@gne.de) CNA3, CNA4, CNA5, CNE3, CNE4, CNE5, Pending MCNE Offizieller Novell SysOp für das Novell DeveloperNet >>> Thomas Lockhart 08.01.2002 16:00:11 >>> > 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 ------------------------------------------- This mail is virus scanned Diese mail ist virusgeprueft CVP Server Solutions by GNE visit us at www.gne.de ------------------------------------------- --=_E1BCEBB0.84E58BB0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Ulrich Neumann.vcf" BEGIN:VCARD VERSION:2.1 X-GWTYPE:USER FN:Ulrich Neumann TEL;WORK:02684-9454-30 ORG:;Technik TEL;PREF;FAX:02684-945494 EMAIL;WORK;PREF;NGW:U_Neumann@gne.de N:Neumann;Ulrich TITLE:Geschäftsführer END:VCARD --=_E1BCEBB0.84E58BB0--