aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-23 02:16:51 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-23 02:16:51 +0000
commit3060d4aa1d5586c085aaec108ac6ced094304322 (patch)
treead9dc1197087fcd5a74e9098f42f9f5706eb971d /lib
parent1347d5126a4d89718544d976f64943dfa93dd8c4 (diff)
downloadandroid_external_rsync-3060d4aa1d5586c085aaec108ac6ced094304322.tar.gz
android_external_rsync-3060d4aa1d5586c085aaec108ac6ced094304322.tar.bz2
android_external_rsync-3060d4aa1d5586c085aaec108ac6ced094304322.zip
handle systems that don't take a 2nd argument to gettimeofday()
Diffstat (limited to 'lib')
-rw-r--r--lib/compat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/compat.c b/lib/compat.c
index 8580fdb9..b1e386a0 100644
--- a/lib/compat.c
+++ b/lib/compat.c
@@ -161,3 +161,13 @@
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
+}