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
b17bc22b
Commit
b17bc22b
authored
Nov 01, 1999
by
Andrew Tridgell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added a replacement inet_aton() for systems that don't have it.
thanks to Dave for pointing this out.
parent
3adffb52
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
configure.in
configure.in
+1
-1
compat.c
lib/compat.c
+16
-0
No files found.
configure.in
View file @
b17bc22b
...
@@ -53,7 +53,7 @@ AC_FUNC_UTIME_NULL
...
@@ -53,7 +53,7 @@ AC_FUNC_UTIME_NULL
AC_CHECK_FUNCS(waitpid wait4 getcwd strdup strerror chown chmod mknod)
AC_CHECK_FUNCS(waitpid wait4 getcwd strdup strerror chown chmod mknod)
AC_CHECK_FUNCS(fchmod fstat strchr readlink link utime utimes strftime)
AC_CHECK_FUNCS(fchmod fstat strchr readlink link utime utimes strftime)
AC_CHECK_FUNCS(memmove lchown vsnprintf snprintf setsid glob strpbrk)
AC_CHECK_FUNCS(memmove lchown vsnprintf snprintf setsid glob strpbrk)
AC_CHECK_FUNCS(strlcat strlcpy)
AC_CHECK_FUNCS(strlcat strlcpy
inet_aton
)
AC_CACHE_CHECK([for working fnmatch],rsync_cv_HAVE_FNMATCH,[
AC_CACHE_CHECK([for working fnmatch],rsync_cv_HAVE_FNMATCH,[
AC_TRY_RUN([#include <fnmatch.h>
AC_TRY_RUN([#include <fnmatch.h>
...
...
lib/compat.c
View file @
b17bc22b
...
@@ -145,3 +145,19 @@
...
@@ -145,3 +145,19 @@
return
ret
;
return
ret
;
}
}
#endif
#endif
#ifndef HAVE_INET_ATON
int
inet_aton
(
const
char
*
cp
,
struct
in_addr
*
inp
)
{
if
(
strcmp
(
cp
,
"255.255.255.255"
)
==
0
)
{
inp
->
s_addr
=
(
unsigned
)
-
1
;
return
1
;
}
inp
->
s_addr
=
inet_addr
(
cp
);
if
(
inp
->
s_addr
==
(
unsigned
)
-
1
)
{
return
0
;
}
return
1
;
}
#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