diff options
| author | Jim Blandy | 1992-11-07 07:37:08 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-11-07 07:37:08 +0000 |
| commit | 92ce5d32cd42bd80ef57557525e56bf4510a32d4 (patch) | |
| tree | 165969bc861c30d05d267901aa13dd971812b1b2 | |
| parent | 2507ce20cd25ebddc13b5fc4897d4f0ec445bbb1 (diff) | |
| download | emacs-92ce5d32cd42bd80ef57557525e56bf4510a32d4.tar.gz emacs-92ce5d32cd42bd80ef57557525e56bf4510a32d4.zip | |
* 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.
| -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. */ | |||
| 201 | #define EMACS_GET_TZ_OFFSET(offset) \ | 201 | #define EMACS_GET_TZ_OFFSET(offset) \ |
| 202 | do { \ | 202 | do { \ |
| 203 | tzset (); \ | 203 | tzset (); \ |
| 204 | (offset) = timezone; \ | 204 | *(offset) = timezone; \ |
| 205 | } | 205 | } while (0) |
| 206 | #endif | 206 | #endif |
| 207 | 207 | ||
| 208 | /* The following sane systems have a tzname array. The timezone() function | 208 | /* The following sane systems have a tzname array. The timezone() function |
| 209 | is a stupid idea; timezone names can only be determined geographically, | 209 | is a stupid idea; timezone names can only be determined geographically, |
| 210 | not by Greenwich offset. */ | 210 | not by Greenwich offset. */ |
| 211 | #if defined (ultrix) || defined (hpux) || defined (_AIX) | 211 | #if defined (ultrix) || defined (hpux) || defined (_AIX) || defined (USG) |
| 212 | 212 | ||
| 213 | #define EMACS_GET_TZ_NAMES(standard, savings) \ | 213 | #define EMACS_GET_TZ_NAMES(standard, savings) \ |
| 214 | do { \ | 214 | do { \ |