diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-23 02:16:51 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-23 02:16:51 +0000 |
commit | 3060d4aa1d5586c085aaec108ac6ced094304322 (patch) | |
tree | ad9dc1197087fcd5a74e9098f42f9f5706eb971d /lib | |
parent | 1347d5126a4d89718544d976f64943dfa93dd8c4 (diff) | |
download | rsync-3060d4aa1d5586c085aaec108ac6ced094304322.tar.gz |
handle systems that don't take a 2nd argument to gettimeofday()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compat.c | 10 |
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 +} |