diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-12-26 06:04:18 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-12-26 06:04:18 +0000 |
commit | 1af75d8d969a6ab92a4861f90642aa19966ba1d2 (patch) | |
tree | 60ad8a04d4d8d6c1861ef9cd17038e975ed47c7f /src/systime.h | |
parent | 02a1620260857adf13c5b24a1800e912af20d5fd (diff) | |
download | emacs-1af75d8d969a6ab92a4861f90642aa19966ba1d2.tar.gz |
(EMACS_GET_TIME) [USG5_4]: Give gettimeofday just one arg.
Diffstat (limited to 'src/systime.h')
-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; #define EMACS_SET_SECS(time, seconds) ((time).tv_sec = (seconds)) #define EMACS_SET_USECS(time, microseconds) ((time).tv_usec = (microseconds)) +/* On SVR4, the compiler may complain if given this extra BSD arg. */ +#ifdef USG5_4 +#define EMACS_GET_TIME(time) \ +{ \ + gettimeofday (&(time)); \ +} +#else /* not USG5_4 */ #define EMACS_GET_TIME(time) \ { \ struct timezone dummy; \ gettimeofday (&(time), &dummy); \ } +#endif /* not USG5_4 */ #define EMACS_ADD_TIME(dest, src1, src2) \ { \ |