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
2213961e
Commit
2213961e
authored
Nov 08, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add back a define of "struct sockaddr_storage" for systems that
don't have it.
parent
d100e733
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
configure.in
configure.in
+2
-0
addrinfo.h
lib/addrinfo.h
+9
-3
No files found.
configure.in
View file @
2213961e
...
...
@@ -436,6 +436,8 @@ AC_CHECK_FUNCS(inet_ntop, , [AC_LIBOBJ(lib/inet_ntop)])
AC_CHECK_FUNCS(inet_pton, , [AC_LIBOBJ(lib/inet_pton)])
AC_HAVE_TYPE([struct addrinfo], [#include <netdb.h>])
AC_HAVE_TYPE([struct sockaddr_storage], [#include <sys/types.h>
#include <sys/socket.h>])
# Irix 6.5 has getaddrinfo but not the corresponding defines, so use
# builtin getaddrinfo if one of the defines don't exist
...
...
lib/addrinfo.h
View file @
2213961e
...
...
@@ -124,7 +124,6 @@ TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#endif
#ifndef HAVE_STRUCT_ADDRINFO
struct
addrinfo
{
int
ai_flags
;
...
...
@@ -136,8 +135,15 @@ struct addrinfo
char
*
ai_canonname
;
struct
addrinfo
*
ai_next
;
};
#endif
/* HAVE_STRUCT_ADDRINFO */
#endif
/*
!
HAVE_STRUCT_ADDRINFO */
#ifndef HAVE_STRUCT_SOCKADDR_STORAGE
struct
sockaddr_storage
{
unsigned
short
ss_family
;
unsigned
long
ss_align
;
char
ss_padding
[
128
-
sizeof
(
unsigned
long
)];
};
#endif
/* !HAVE_STRUCT_SOCKADDR_STORAGE */
#ifndef HAVE_GETADDRINFO
...
...
@@ -169,6 +175,6 @@ extern const char *gai_strerror(int errcode);
extern
int
getnameinfo
(
const
struct
sockaddr
*
sa
,
socklen_t
salen
,
char
*
node
,
size_t
nodelen
,
char
*
service
,
size_t
servicelen
,
int
flags
);
#endif
/* HAVE_GETADDRINFO */
#endif
/*
!
HAVE_GETADDRINFO */
#endif
/* ADDRINFO_H */
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