From 92ce5d32cd42bd80ef57557525e56bf4510a32d4 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sat, 7 Nov 1992 07:37:08 +0000 Subject: * systime.h [USG] (EMACS_GET_TZ_OFFSET): Assign to *(offset), not (offset). Don't forget the while corresponding to the do. Include USG in the list of systems that have a tzname array. --- src/systime.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/systime.h') diff --git a/src/systime.h b/src/systime.h index 1741c8cc046..ab1d6802133 100644 --- a/src/systime.h +++ b/src/systime.h @@ -201,14 +201,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define EMACS_GET_TZ_OFFSET(offset) \ do { \ tzset (); \ - (offset) = timezone; \ - } + *(offset) = timezone; \ + } while (0) #endif /* The following sane systems have a tzname array. The timezone() function is a stupid idea; timezone names can only be determined geographically, not by Greenwich offset. */ -#if defined (ultrix) || defined (hpux) || defined (_AIX) +#if defined (ultrix) || defined (hpux) || defined (_AIX) || defined (USG) #define EMACS_GET_TZ_NAMES(standard, savings) \ do { \ -- cgit v1.2.1