From: Dave Love Date: Fri, 23 Jun 2000 17:05:10 +0000 (+0000) Subject: (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use HAVE_STRUCT_TIMEZONE. X-Git-Tag: emacs-pretest-21.0.90~3092 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=97dfd1a1330155f0dea99216da44f9b66658ee43;p=emacs.git (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use HAVE_STRUCT_TIMEZONE. --- 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) \