Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
413b31ee
Commit
413b31ee
authored
May 23, 2005
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/*: BeOS compile fixes
configure.ac: access_ftp now requires -lnet on BeOS
parent
f95fc88f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
configure.ac
configure.ac
+1
-1
src/misc/getaddrinfo.c
src/misc/getaddrinfo.c
+16
-1
src/misc/net.c
src/misc/net.c
+1
-1
No files found.
configure.ac
View file @
413b31ee
...
...
@@ -187,7 +187,7 @@ case "${target_os}" in
VLC_ADD_CXXFLAGS([beos],[])
VLC_ADD_LDFLAGS([vlc beos],[-lbe])
VLC_ADD_LDFLAGS([beos],[-lmedia -ltranslation -ltracker -lgame])
VLC_ADD_LDFLAGS([access_file access_mms access_output_udp telnet netsync sap ipv4 vlc],[-lnet])
VLC_ADD_LDFLAGS([access_file access_
ftp access_
mms access_output_udp telnet netsync sap ipv4 vlc],[-lnet])
dnl Ugly check for Zeta
if test -f /boot/beos/system/lib/libzeta.so; then
...
...
src/misc/getaddrinfo.c
View file @
413b31ee
...
...
@@ -46,6 +46,12 @@
# include <netdb.h>
#endif
#ifdef SYS_BEOS
#define NO_ADDRESS NO_DATA
#define PF_INET AF_INET
#define INADDR_NONE 0xFFFFFFFF
#define AF_UNSPEC 0
#endif
#define _NI_MASK (NI_NUMERICHOST|NI_NUMERICSERV|NI_NOFQDN|NI_NAMEREQD|\
NI_DGRAM)
...
...
@@ -202,6 +208,8 @@ __getnameinfo( const struct sockaddr *sa, socklen_t salen,
if
(
serv
!=
NULL
)
{
struct
servent
*
sent
=
NULL
;
#ifndef SYS_BEOS
/* No getservbyport() */
int
solved
=
0
;
/* service name resolution */
...
...
@@ -218,6 +226,9 @@ __getnameinfo( const struct sockaddr *sa, socklen_t salen,
solved
=
1
;
}
}
#else
sent
=
NULL
;
#endif
if
(
sent
==
NULL
)
{
snprintf
(
serv
,
servlen
,
"%u"
,
...
...
@@ -289,7 +300,7 @@ makeaddrinfo (int af, int type, int proto,
}
}
/* failsafe */
freeaddrinfo
(
res
);
vlc_
freeaddrinfo
(
res
);
return
NULL
;
}
...
...
@@ -352,7 +363,9 @@ __getaddrinfo (const char *node, const char *service,
protocol
=
IPPROTO_UDP
;
break
;
#ifndef SYS_BEOS
case
SOCK_RAW
:
#endif
case
0
:
break
;
...
...
@@ -544,10 +557,12 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
if
(
val
.
b_bool
)
hints
.
ai_family
=
AF_INET
;
#ifdef HAVE_INET_PTON
var_Create
(
p_this
,
"ipv6"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_this
,
"ipv6"
,
&
val
);
if
(
val
.
b_bool
)
hints
.
ai_family
=
AF_INET6
;
#endif
}
/*
...
...
src/misc/net.c
View file @
413b31ee
...
...
@@ -457,7 +457,7 @@ int *__net_ListenTCP( vlc_object_t *p_this, const char *psz_host, int i_port )
}
}
freeaddrinfo
(
res
);
vlc_
freeaddrinfo
(
res
);
return
pi_handles
;
}
...
...
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