Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
b6bf4381
Commit
b6bf4381
authored
Mar 05, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use replacement API for obsolete systems. Not tested.
parent
6c477241
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+9
-8
No files found.
src/network/getaddrinfo.c
View file @
b6bf4381
...
...
@@ -102,7 +102,6 @@ const char *vlc_gai_strerror (int errnum)
}
#endif
#ifndef WIN32
#ifndef HAVE_GETNAMEINFO
/*
* getnameinfo() non-thread-safe IPv4-only implementation,
...
...
@@ -448,7 +447,6 @@ getaddrinfo (const char *node, const char *service,
return
0
;
}
#endif
/* if !HAVE_GETADDRINFO */
#endif
#if defined( WIN32 ) && !defined( UNDER_CE )
/*
...
...
@@ -503,13 +501,17 @@ static WSAAPI int _ws2_getnameinfo_bind( const struct sockaddr FAR * sa, socklen
ws2_getnameinfo
=
entry
;
return
result
;
}
/* return a possible error if API is not found */
WSASetLastError
(
WSAEAFNOSUPPORT
);
return
EAI_FAMILY
;
return
getnameinfo
(
sa
,
salen
,
host
,
hostlen
,
serv
,
servlen
,
flags
);
}
#undef getnameinfo
#define getnameinfo ws2_getnameinfo
/* So much for using different calling conventions */
static
WSAAPI
void
call_freeaddrinfo
(
struct
addrinfo
*
infos
)
{
freeaddrinfo
(
infos
);
}
static
WSAAPI
int
_ws2_getaddrinfo_bind
(
const
char
FAR
*
node
,
const
char
FAR
*
service
,
const
struct
addrinfo
FAR
*
hints
,
struct
addrinfo
FAR
*
FAR
*
res
)
{
...
...
@@ -527,9 +529,8 @@ static WSAAPI int _ws2_getaddrinfo_bind(const char FAR *node, const char FAR *se
ws2_getaddrinfo
=
entry
;
return
result
;
}
/* return a possible error if API is not found */
WSASetLastError
(
WSAHOST_NOT_FOUND
);
return
EAI_NONAME
;
ws2_freeaddrinfo
=
call_freeaddrinfo
;
return
getaddrinfo
(
node
,
service
,
hints
,
res
);
}
#undef getaddrinfo
#undef freeaddrinfo
...
...
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