1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 16:51:06 -07:00

(EMACS_GET_TIME) [USG5_4]: Give gettimeofday just one arg.

This commit is contained in:
Richard M. Stallman 1993-12-26 06:04:18 +00:00
parent ce3f43382e
commit 4fb83f3cde

View file

@ -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) \
{ \