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
45d6d772
Commit
45d6d772
authored
Mar 03, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix linking.
parent
ab1251ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+6
-11
No files found.
src/network/getaddrinfo.c
View file @
45d6d772
...
...
@@ -567,12 +567,10 @@ int vlc_getnameinfo( const struct sockaddr *sa, int salen,
i_servlen
=
0
;
}
#if
defined (HAVE_GETNAMEINFO)
#if
ndef WIN32
i_val
=
getnameinfo
(
sa
,
salen
,
host
,
hostlen
,
psz_serv
,
i_servlen
,
flags
);
#elif defined (WIN32)
i_val
=
ws2_getnameinfo
(
sa
,
salen
,
host
,
hostlen
,
psz_serv
,
i_servlen
,
flags
);
#else
i_val
=
_
_getnameinfo
(
sa
,
salen
,
host
,
hostlen
,
psz_serv
,
i_servlen
,
flags
);
i_val
=
ws2
_getnameinfo
(
sa
,
salen
,
host
,
hostlen
,
psz_serv
,
i_servlen
,
flags
);
#endif
if
(
portnum
!=
NULL
)
...
...
@@ -582,7 +580,6 @@ int vlc_getnameinfo( const struct sockaddr *sa, int salen,
}
/* TODO: support for setting sin6_scope_id */
int
vlc_getaddrinfo
(
vlc_object_t
*
p_this
,
const
char
*
node
,
int
i_port
,
const
struct
addrinfo
*
p_hints
,
struct
addrinfo
**
res
)
...
...
@@ -657,7 +654,7 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
#ifdef WIN32
/*
* Winsock tries to resolve numerical IPv4 addresses as AAAA
* and IPv6 addresses as A... There comes the
work around
.
* and IPv6 addresses as A... There comes the
bug-to-bug fix
.
*/
if
((
hints
.
ai_flags
&
AI_NUMERICHOST
)
==
0
)
{
...
...
@@ -699,7 +696,7 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
var_Get
(
p_this
->
p_libvlc
,
"getaddrinfo_mutex"
,
&
lock
);
vlc_mutex_lock
(
lock
.
p_address
);
int
ret
=
__
getaddrinfo
(
psz_node
,
psz_service
,
&
hints
,
res
);
int
ret
=
getaddrinfo
(
psz_node
,
psz_service
,
&
hints
,
res
);
vlc_mutex_unlock
(
lock
.
p_address
);
return
ret
;
#endif
...
...
@@ -708,11 +705,9 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
void
vlc_freeaddrinfo
(
struct
addrinfo
*
infos
)
{
#if
defined (HAVE_GETADDRINFO)
#if
ndef WIN32
freeaddrinfo
(
infos
);
#elif defined (WIN32)
ws2_freeaddrinfo
(
infos
);
#else
__freeaddrinfo
(
infos
);
ws2_freeaddrinfo
(
infos
);
#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