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
ff09b15b
Commit
ff09b15b
authored
Nov 13, 2001
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Added a "make package-beos" rule. * Fixed a BeOS compilation issue.
parent
b3248bd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
10 deletions
+34
-10
Makefile
Makefile
+24
-0
src/misc/netutils.c
src/misc/netutils.c
+10
-10
No files found.
Makefile
View file @
ff09b15b
...
...
@@ -381,6 +381,30 @@ package-win32:
# Clean up
rm
-Rf
tmp
package-beos
:
# Check that tmp isn't in the way
@
if
test
-e
tmp
;
then
\
echo
"Error: please remove ./tmp, it is in the way"
;
false
;
\
else
\
echo
"OK."
;
mkdir
tmp
;
\
fi
# Create dir
mkdir
-p
tmp/vlc/share
# Copy relevant files
cp
vlc tmp/vlc/
cp
AUTHORS COPYING ChangeLog ChangeLog.libdvdcss
\
README README.libdvdcss FAQ TODO tmp/vlc/
for
file
in
default8x16.psf default8x9.psf
;
\
do
cp
share/
$$
file tmp/vlc/share/
;
done
# Create package
mv
tmp/vlc tmp/vlc-
${VLC_QUICKVERSION}
(
cd
tmp
;
find vlc-
${VLC_QUICKVERSION}
|
\
zip
-9
-@ vlc-
${VLC_QUICKVERSION}
-beos
.zip
)
mv
tmp/vlc-
${VLC_QUICKVERSION}
-beos
.zip .
# Clean up
rm
-Rf
tmp
libdvdcss-snapshot
:
snapshot-common
# Remove vlc sources and icons, doc, debian directory...
rm
-Rf
tmp/vlc/src tmp/vlc/share tmp/vlc/plugins tmp/vlc/doc
...
...
src/misc/netutils.c
View file @
ff09b15b
...
...
@@ -2,7 +2,7 @@
* netutils.c: various network functions
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: netutils.c,v 1.4
4 2001/11/12 23:56:5
3 sam Exp $
* $Id: netutils.c,v 1.4
5 2001/11/13 00:46:2
3 sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Benoit Steiner <benny@via.ecp.fr>
...
...
@@ -114,14 +114,13 @@ static int GetAdapterInfo ( int i_adapter, char *psz_string );
int
network_BuildLocalAddr
(
struct
sockaddr_in
*
p_socket
,
int
i_port
,
char
*
psz_broadcast
)
{
char
psz_hostname
[
INPUT_MAX_SOURCE_LENGTH
];
struct
hostent
*
p_hostent
;
#if defined( SYS_BEOS )
intf_ErrMsg
(
"error: channel changing is not yet supported under BeOS"
);
return
(
1
);
#endif
#else
char
psz_hostname
[
INPUT_MAX_SOURCE_LENGTH
];
struct
hostent
*
p_hostent
;
/* Reset struct */
memset
(
p_socket
,
0
,
sizeof
(
struct
sockaddr_in
)
);
...
...
@@ -166,6 +165,7 @@ int network_BuildLocalAddr( struct sockaddr_in * p_socket, int i_port,
p_hostent
->
h_length
);
}
return
(
0
);
#endif
}
/*****************************************************************************
...
...
@@ -173,13 +173,12 @@ int network_BuildLocalAddr( struct sockaddr_in * p_socket, int i_port,
*****************************************************************************/
int
network_BuildRemoteAddr
(
struct
sockaddr_in
*
p_socket
,
char
*
psz_server
)
{
struct
hostent
*
p_hostent
;
#if defined( SYS_BEOS )
intf_ErrMsg
(
"error: channel changing is not yet supported under BeOS"
);
return
(
1
);
#endif
#else
struct
hostent
*
p_hostent
;
/* Reset structure */
memset
(
p_socket
,
0
,
sizeof
(
struct
sockaddr_in
)
);
...
...
@@ -208,6 +207,7 @@ int network_BuildRemoteAddr( struct sockaddr_in * p_socket, char * psz_server )
p_hostent
->
h_length
);
}
return
(
0
);
#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