From: Richard M. Stallman Date: Sun, 26 Dec 1993 06:04:18 +0000 (+0000) Subject: (EMACS_GET_TIME) [USG5_4]: Give gettimeofday just one arg. X-Git-Tag: emacs-19.34~10496 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4fb83f3cde1689cc5caadd90c737669b8f94735d;p=emacs.git (EMACS_GET_TIME) [USG5_4]: Give gettimeofday just one arg. --- 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) \ { \