diff options
| author | Andreas Schwab | 2006-12-10 16:26:30 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2006-12-10 16:26:30 +0000 |
| commit | d170dd8b3c96ecefc9230fe433973282f278a1b7 (patch) | |
| tree | f42779800f2cbbd47be45e0936943e12e538f2dc /src | |
| parent | 5aa4ad53e8cd9b51f6ee187eefc445adc9835043 (diff) | |
| download | emacs-d170dd8b3c96ecefc9230fe433973282f278a1b7.tar.gz emacs-d170dd8b3c96ecefc9230fe433973282f278a1b7.zip | |
(EMACS_GET_TIME): Remove check for
HAVE_STRUCT_TIMEZONE which is never defined.
Diffstat (limited to 'src')
| -rw-r--r-- | src/systime.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/systime.h b/src/systime.h index 00373b257b3..e7ff2b2a3b7 100644 --- a/src/systime.h +++ b/src/systime.h | |||
| @@ -101,16 +101,8 @@ extern time_t timezone; | |||
| 101 | #ifdef GETTIMEOFDAY_ONE_ARGUMENT | 101 | #ifdef GETTIMEOFDAY_ONE_ARGUMENT |
| 102 | #define EMACS_GET_TIME(time) gettimeofday (&(time)) | 102 | #define EMACS_GET_TIME(time) gettimeofday (&(time)) |
| 103 | #else /* not GETTIMEOFDAY_ONE_ARGUMENT */ | 103 | #else /* not GETTIMEOFDAY_ONE_ARGUMENT */ |
| 104 | #ifdef HAVE_STRUCT_TIMEZONE | ||
| 105 | #define EMACS_GET_TIME(time) \ | ||
| 106 | do { \ | ||
| 107 | struct timezone dummy; \ | ||
| 108 | gettimeofday (&(time), &dummy); \ | ||
| 109 | } while (0) | ||
| 110 | #else | ||
| 111 | /* Presumably the second arg is ignored. */ | 104 | /* Presumably the second arg is ignored. */ |
| 112 | #define EMACS_GET_TIME(time) gettimeofday (&(time), NULL) | 105 | #define EMACS_GET_TIME(time) gettimeofday (&(time), NULL) |
| 113 | #endif /* HAVE_STRUCT_TIMEZONE */ | ||
| 114 | #endif /* not GETTIMEOFDAY_ONE_ARGUMENT */ | 106 | #endif /* not GETTIMEOFDAY_ONE_ARGUMENT */ |
| 115 | 107 | ||
| 116 | #define EMACS_ADD_TIME(dest, src1, src2) \ | 108 | #define EMACS_ADD_TIME(dest, src1, src2) \ |