diff options
| author | Richard M. Stallman | 1993-12-26 06:04:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-12-26 06:04:18 +0000 |
| commit | 4fb83f3cde1689cc5caadd90c737669b8f94735d (patch) | |
| tree | fed46869d2a627e7d86350ab46e59eff23363d6c /src | |
| parent | ce3f43382e115b9207acf3e21f6571388a41f6b7 (diff) | |
| download | emacs-4fb83f3cde1689cc5caadd90c737669b8f94735d.tar.gz emacs-4fb83f3cde1689cc5caadd90c737669b8f94735d.zip | |
(EMACS_GET_TIME) [USG5_4]: Give gettimeofday just one arg.
Diffstat (limited to 'src')
| -rw-r--r-- | src/systime.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/systime.h b/src/systime.h index 6b87013dd56..bcb62f5856b 100644 --- a/src/systime.h +++ b/src/systime.h | |||
| @@ -86,11 +86,19 @@ extern long timezone; | |||
| 86 | #define EMACS_SET_SECS(time, seconds) ((time).tv_sec = (seconds)) | 86 | #define EMACS_SET_SECS(time, seconds) ((time).tv_sec = (seconds)) |
| 87 | #define EMACS_SET_USECS(time, microseconds) ((time).tv_usec = (microseconds)) | 87 | #define EMACS_SET_USECS(time, microseconds) ((time).tv_usec = (microseconds)) |
| 88 | 88 | ||
| 89 | /* On SVR4, the compiler may complain if given this extra BSD arg. */ | ||
| 90 | #ifdef USG5_4 | ||
| 91 | #define EMACS_GET_TIME(time) \ | ||
| 92 | { \ | ||
| 93 | gettimeofday (&(time)); \ | ||
| 94 | } | ||
| 95 | #else /* not USG5_4 */ | ||
| 89 | #define EMACS_GET_TIME(time) \ | 96 | #define EMACS_GET_TIME(time) \ |
| 90 | { \ | 97 | { \ |
| 91 | struct timezone dummy; \ | 98 | struct timezone dummy; \ |
| 92 | gettimeofday (&(time), &dummy); \ | 99 | gettimeofday (&(time), &dummy); \ |
| 93 | } | 100 | } |
| 101 | #endif /* not USG5_4 */ | ||
| 94 | 102 | ||
| 95 | #define EMACS_ADD_TIME(dest, src1, src2) \ | 103 | #define EMACS_ADD_TIME(dest, src1, src2) \ |
| 96 | { \ | 104 | { \ |