diff options
author | Jim Blandy <jimb@redhat.com> | 1992-11-07 07:37:08 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1992-11-07 07:37:08 +0000 |
commit | 92ce5d32cd42bd80ef57557525e56bf4510a32d4 (patch) | |
tree | 165969bc861c30d05d267901aa13dd971812b1b2 /src/systime.h | |
parent | 2507ce20cd25ebddc13b5fc4897d4f0ec445bbb1 (diff) | |
download | emacs-92ce5d32cd42bd80ef57557525e56bf4510a32d4.tar.gz |
* 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.
Diffstat (limited to 'src/systime.h')
-rw-r--r-- | src/systime.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 { \ |