From: Christophe Massiot Date: Mon, 22 Oct 2001 12:28:53 +0000 (+0000) Subject: Fixed compilation problems with OpenBSD. X-Git-Tag: 0.2.91~59 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4c7a79ddc3ed04fab78b1e7ed16dbdea8583f098;p=vlc Fixed compilation problems with OpenBSD. --- diff --git a/include/common.h b/include/common.h index 2710d0c015..ccae63e682 100644 --- a/include/common.h +++ b/include/common.h @@ -3,7 +3,7 @@ * Collection of useful common types and macros definitions ***************************************************************************** * Copyright (C) 1998, 1999, 2000 VideoLAN - * $Id: common.h,v 1.41 2001/09/28 09:57:08 massiot Exp $ + * $Id: common.h,v 1.42 2001/10/22 12:28:53 massiot Exp $ * * Authors: Samuel Hocevar * Vincent Seguin @@ -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 # define memalign(align,size) valloc(size) # else /* Assume malloc alignment is sufficient */ diff --git a/include/netutils.h b/include/netutils.h index 3e04dadfac..24e9626d76 100644 --- a/include/netutils.h +++ b/include/netutils.h @@ -4,7 +4,7 @@ * modules. ***************************************************************************** * Copyright (C) 1999, 2000, 2001 VideoLAN - * $Id: netutils.h,v 1.14 2001/05/30 17:03:11 sam Exp $ + * $Id: netutils.h,v 1.15 2001/10/22 12:28:53 massiot Exp $ * * Authors: Vincent Seguin * Henri Fallon @@ -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 ); diff --git a/src/misc/modules_core.h b/src/misc/modules_core.h index 1c239747f4..1dbcf0ef7f 100644 --- a/src/misc/modules_core.h +++ b/src/misc/modules_core.h @@ -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/06/25 11:34:08 sam Exp $ + * $Id: modules_core.h,v 1.4 2001/10/22 12:28:53 massiot Exp $ * * Authors: Samuel Hocevar * @@ -42,12 +42,16 @@ module_load( char * psz_filename, module_handle_t * handle ) *handle = LoadLibrary( psz_filename ); return( *handle == NULL ); -#else +#elif 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 }