From 97dfd1a1330155f0dea99216da44f9b66658ee43 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Fri, 23 Jun 2000 17:05:10 +0000 Subject: [PATCH] (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use HAVE_STRUCT_TIMEZONE. --- src/systime.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/systime.h b/src/systime.h index 59fc8a9628a..2b7eedbefcd 100644 --- a/src/systime.h +++ b/src/systime.h @@ -100,11 +100,16 @@ extern time_t timezone; #ifdef GETTIMEOFDAY_ONE_ARGUMENT #define EMACS_GET_TIME(time) gettimeofday (&(time)) #else /* not GETTIMEOFDAY_ONE_ARGUMENT */ +#ifdef HAVE_STRUCT_TIMEZONE #define EMACS_GET_TIME(time) \ do { \ struct timezone dummy; \ gettimeofday (&(time), &dummy); \ } while (0) +#else +/* Presumably the second arg is ignored. */ +#define EMACS_GET_TIME(time) gettimeofday (&(time), NULL) +#endif /* HAVE_STRUCT_TIMEZONE */ #endif /* not GETTIMEOFDAY_ONE_ARGUMENT */ #define EMACS_ADD_TIME(dest, src1, src2) \ -- 2.39.2