Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
3060d4aa
Commit
3060d4aa
authored
Jan 23, 2000
by
Andrew Tridgell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle systems that don't take a 2nd argument to gettimeofday()
parent
1347d512
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
2 deletions
+24
-2
Makefile.in
Makefile.in
+1
-1
acconfig.h
acconfig.h
+1
-0
authenticate.c
authenticate.c
+1
-1
configure.in
configure.in
+11
-0
compat.c
lib/compat.c
+10
-0
No files found.
Makefile.in
View file @
3060d4aa
...
...
@@ -64,7 +64,7 @@ rsyncd.conf.5: rsyncd.conf.yo
yodl2man
-o
rsyncd.conf.5 rsyncd.conf.yo
proto
:
cat
*
.c |
awk
-f
mkproto.awk
>
proto.h
cat
*
.c
lib/compat.c
|
awk
-f
mkproto.awk
>
proto.h
clean
:
rm
-f
*
~
$(OBJS)
rsync
...
...
acconfig.h
View file @
3060d4aa
...
...
@@ -10,3 +10,4 @@
#undef HAVE_SHORT_INO_T
#undef HAVE_GETOPT_LONG
#undef REPLACE_INET_NTOA
#undef HAVE_GETTIMEOFDAY_TZ
authenticate.c
View file @
3060d4aa
...
...
@@ -56,7 +56,7 @@ static void gen_challenge(char *addr, char *challenge)
memset
(
input
,
0
,
sizeof
(
input
));
strlcpy
((
char
*
)
input
,
addr
,
17
);
gettimeofday
(
&
tv
,
NULL
);
sys_gettimeofday
(
&
tv
);
SIVAL
(
input
,
16
,
tv
.
tv_sec
);
SIVAL
(
input
,
20
,
tv
.
tv_usec
);
SIVAL
(
input
,
24
,
getpid
());
...
...
configure.in
View file @
3060d4aa
...
...
@@ -135,6 +135,17 @@ if test x"$rsync_cv_HAVE_UTIMBUF" = x"yes"; then
AC_DEFINE(HAVE_UTIMBUF)
fi
AC_CACHE_CHECK([if gettimeofday takes tz argument],rsync_cv_HAVE_GETTIMEOFDAY_TZ,[
AC_TRY_RUN([
#include <sys/time.h>
#include <unistd.h>
main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}],
rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes,rsync_cv_HAVE_GETTIMEOFDAY_TZ=no,rsync_cv_HAVE_GETTIMEOFDAY_TZ=cross)])
if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
AC_DEFINE(HAVE_GETTIMEOFDAY_TZ)
fi
AC_CACHE_CHECK([for broken inet_ntoa],rsync_cv_REPLACE_INET_NTOA,[
AC_TRY_RUN([
#include <stdio.h>
...
...
lib/compat.c
View file @
3060d4aa
...
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment