(EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use HAVE_STRUCT_TIMEZONE.

This commit is contained in:
Dave Love
2000-06-23 17:05:10 +00:00
parent 2e83e1e11e
commit 97dfd1a133

View File

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