From 4fb83f3cde1689cc5caadd90c737669b8f94735d Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 26 Dec 1993 06:04:18 +0000 Subject: [PATCH] (EMACS_GET_TIME) [USG5_4]: Give gettimeofday just one arg. --- src/systime.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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) \ { \ -- 2.39.5