Mercurial > emacs
changeset 29914:668a501f94a2
(EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use HAVE_STRUCT_TIMEZONE.
author | Dave Love <fx@gnu.org> |
---|---|
date | Fri, 23 Jun 2000 17:05:10 +0000 |
parents | f8892a11c005 |
children | f93f1d35850a |
files | src/systime.h |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/systime.h Fri Jun 23 17:02:15 2000 +0000 +++ b/src/systime.h Fri Jun 23 17:05:10 2000 +0000 @@ -100,11 +100,16 @@ #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) \