]> git.eshelyaron.com Git - emacs.git/commitdiff
(EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use HAVE_STRUCT_TIMEZONE.
authorDave Love <fx@gnu.org>
Fri, 23 Jun 2000 17:05:10 +0000 (17:05 +0000)
committerDave Love <fx@gnu.org>
Fri, 23 Jun 2000 17:05:10 +0000 (17:05 +0000)
src/systime.h

index 59fc8a9628ad0664d40d755ef9d1513e6d32274e..2b7eedbefcd2f870c24ec4dd43a9b9b3406a170e 100644 (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)               \