]> git.eshelyaron.com Git - emacs.git/commitdiff
(EMACS_GET_TIME) [USG5_4]: Give gettimeofday just one arg.
authorRichard M. Stallman <rms@gnu.org>
Sun, 26 Dec 1993 06:04:18 +0000 (06:04 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 26 Dec 1993 06:04:18 +0000 (06:04 +0000)
src/systime.h

index 6b87013dd56a390a6642feb09a04467277304e1c..bcb62f5856baf8d4bfa8fa8b8e2c9cc75ab6c081 100644 (file)
@@ -86,11 +86,19 @@ extern long timezone;
 #define EMACS_SET_SECS(time, seconds)      ((time).tv_sec  = (seconds))
 #define EMACS_SET_USECS(time, microseconds) ((time).tv_usec = (microseconds))
 
+/* On SVR4, the compiler may complain if given this extra BSD arg.  */
+#ifdef USG5_4
+#define EMACS_GET_TIME(time)                                  \
+{                                                             \
+  gettimeofday (&(time));                                     \
+}
+#else /* not USG5_4 */
 #define EMACS_GET_TIME(time)                                   \
 {                                                              \
   struct timezone dummy;                                       \
   gettimeofday (&(time), &dummy);                              \
 }
+#endif /* not USG5_4 */
 
 #define EMACS_ADD_TIME(dest, src1, src2)                       \
 {                                                              \