Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
3b17379d
Commit
3b17379d
authored
Mar 02, 2007
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile fix + define undefined error value
parent
da461ea1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+4
-1
No files found.
src/network/getaddrinfo.c
View file @
3b17379d
...
@@ -53,6 +53,9 @@
...
@@ -53,6 +53,9 @@
#ifndef AF_UNSPEC
#ifndef AF_UNSPEC
# define AF_UNSPEC 0
# define AF_UNSPEC 0
#endif
#endif
#ifndef EAI_OVERFLOW
# define EAI_OVERFLOW -12
/* Argument buffer overflow. */
#endif
#define _NI_MASK (NI_NUMERICHOST|NI_NUMERICSERV|NI_NOFQDN|NI_NAMEREQD|\
#define _NI_MASK (NI_NUMERICHOST|NI_NUMERICSERV|NI_NOFQDN|NI_NAMEREQD|\
NI_DGRAM)
NI_DGRAM)
...
@@ -171,7 +174,7 @@ __getnameinfo( const struct sockaddr *sa, socklen_t salen,
...
@@ -171,7 +174,7 @@ __getnameinfo( const struct sockaddr *sa, socklen_t salen,
}
}
/* inet_ntoa() is not thread-safe, do not use it */
/* inet_ntoa() is not thread-safe, do not use it */
uint32_t
ipv4
=
ntohl
(
addr
->
sin_addr
);
uint32_t
ipv4
=
ntohl
(
addr
->
sin_addr
.
s_addr
);
if
(
snprintf
(
host
,
hostlen
,
"%u.%u.%u.%u"
,
ipv4
>>
24
,
if
(
snprintf
(
host
,
hostlen
,
"%u.%u.%u.%u"
,
ipv4
>>
24
,
(
ipv4
>>
16
)
&
0xff
,
(
ipv4
>>
8
)
&
0xff
,
(
ipv4
>>
16
)
&
0xff
,
(
ipv4
>>
8
)
&
0xff
,
...
...
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