diff options
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) \ { \ |