handle systems that don't take a 2nd argument to gettimeofday()
[rsync/rsync.git] / lib / compat.c
index 8580fdb..b1e386a 100644 (file)
        return 1;
 }
 #endif
+
+/* some systems don't take the 2nd argument */
+int sys_gettimeofday(struct timeval *tv)
+{
+#if HAVE_GETTIMEOFDAY_TZ
+       return gettimeofday(tv, NULL);
+#else
+       return gettimeofday(tv);
+#endif
+}