Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
4c7a79dd
Commit
4c7a79dd
authored
Oct 22, 2001
by
Christophe Massiot
Browse files
Fixed compilation problems with OpenBSD.
parent
34487b0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/common.h
View file @
4c7a79dd
...
...
@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: common.h,v 1.4
1
2001/
09/28 09:57:08
massiot Exp $
* $Id: common.h,v 1.4
2
2001/
10/22 12:28:53
massiot Exp $
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
...
...
@@ -206,6 +206,7 @@ struct pgrm_descriptor_s;
#else
# ifdef HAVE_VALLOC
/* That's like using a hammer to kill a fly, but eh... */
# include <unistd.h>
# define memalign(align,size) valloc(size)
# else
/* Assume malloc alignment is sufficient */
...
...
include/netutils.h
View file @
4c7a79dd
...
...
@@ -4,7 +4,7 @@
* modules.
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: netutils.h,v 1.1
4
2001/
05/30 17:03:11 sam
Exp $
* $Id: netutils.h,v 1.1
5
2001/
10/22 12:28:53 massiot
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Henri Fallon <henri@videolan.org>
...
...
@@ -30,6 +30,7 @@
/*****************************************************************************
* Prototypes
*****************************************************************************/
struct
sockaddr_in
;
int
network_BuildLocalAddr
(
struct
sockaddr_in
*
,
int
,
char
*
);
int
network_BuildRemoteAddr
(
struct
sockaddr_in
*
,
char
*
);
int
network_ChannelJoin
(
int
);
...
...
src/misc/modules_core.h
View file @
4c7a79dd
...
...
@@ -2,7 +2,7 @@
* modules_core.h : Module management functions used by the core application.
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: modules_core.h,v 1.
3
2001/0
6
/2
5
1
1:34:08 sam
Exp $
* $Id: modules_core.h,v 1.
4
2001/
1
0/2
2
1
2:28:53 massiot
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -42,12 +42,16 @@ module_load( char * psz_filename, module_handle_t * handle )
*
handle
=
LoadLibrary
(
psz_filename
);
return
(
*
handle
==
NULL
);
#el
se
#el
if defined(RTLD_NOW)
/* Do not open modules with RTLD_GLOBAL, or we are going to get namespace
* collisions when two modules have common public symbols */
*
handle
=
dlopen
(
psz_filename
,
RTLD_NOW
);
return
(
*
handle
==
NULL
);
#else
*
handle
=
dlopen
(
psz_filename
,
DL_LAZY
);
return
(
*
handle
==
NULL
);
#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