changeset 5355:ad4092c38f51

(EMACS_GET_TIME) [USG5_4]: Give gettimeofday just one arg.
author Richard M. Stallman <rms@gnu.org>
date Sun, 26 Dec 1993 06:04:18 +0000
parents 9bf728b3fbe5
children 70983b24cc69
files src/systime.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/systime.h	Sun Dec 26 06:00:04 1993 +0000
+++ b/src/systime.h	Sun Dec 26 06:04:18 1993 +0000
@@ -86,11 +86,19 @@
 #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)			\
 {								\