From xemacs-m  Sun Jun 29 08:39:02 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id IAA00575
	for <xemacs-beta@xemacs.org>; Sun, 29 Jun 1997 08:39:01 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id HAA21236; Sun, 29 Jun 1997 07:02:48 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id GAA01234; Sun, 29 Jun 1997 06:38:31 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id GAA09355; Sun, 29 Jun 1997 06:38:32 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id GAA13880; Sun, 29 Jun 1997 06:38:32 -0700
Date: Sun, 29 Jun 1997 06:38:32 -0700
Message-Id: <199706291338.GAA13880@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: Olivier Galibert <Olivier.Galibert@mines.u-nancy.fr>
Cc: Xemacs-beta ML <xemacs-beta@xemacs.org>
Subject: extern long timezone;
In-Reply-To: <19970629125136.04712@iria.mines.u-nancy.fr>
References: <19970629125136.04712@iria.mines.u-nancy.fr>
X-Mailer: VM 6.32 under 20.3 "Sofia" XEmacs  Lucid (beta9)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "OG" == Olivier Galibert <Olivier.Galibert@mines.u-nancy.fr> writes:

OG> cc -64 -g -Demacs -I../src  -DHAVE_CONFIG_H -xansi /users/model/galibert/xemacs/xemacs-20.3-b9/lib-src/profile.c   -lcurses -laudio -lm -o profile
OG> "/users/model/galibert/xemacs/xemacs-20.3-b9/lib-src/../src/systime.h", line 55: error(1143): 
OG>           declaration is incompatible with "time_t timezone" (declared at line
OG>           165 of "/usr/include/time.h")
OG>   extern long timezone;
OG>               ^

OG> 1 error detected in the compilation of "/users/model/galibert/xemacs/xemacs-20.3-b9/lib-src/profile.c".

OG> This is because:
OG> - irix is defined as USG in {s,m}/*
OG> - int and long are different in -64 mode.

OG> Maybe configure should check whether timezone is declared in time.h and rely
OG> on that ?

OG> Death to {s,m}/* :-)

Maybe XEmacs shouldn't even be using the global symbol timezone.
Can't we replace this with the Posixy way, whatever that is?

Martin

