ac_cv_have_plugins=yes])
fi
-# Only test for dlopen() if the others didn't work or on Darwin for 64bit builds
-if test "${ac_cv_have_plugins}" = "no" -o "${SYS}" = "darwin"; then
+# Only test for dlopen() if the others didn't work
+if test "${ac_cv_have_plugins}" = "no"; then
AC_CHECK_HEADERS(dlfcn.h sys/dl.h)
ac_cv_my_have_dlopen=no
AC_CHECK_FUNC(dlopen,
{
if( p_module->b_loaded && p_module->b_unloadable )
{
- #if defined( __APPLE__ ) && defined ( __x86_64__ )
- if( strcmp( p_module->psz_object_name, "macosx" ) )
- #endif
- module_Unload( p_module->handle );
+ module_Unload( p_module->handle );
}
UndupModule( p_module );
free( p_module->psz_filename );
#ifndef __LIBVLC_MODULES_H
# define __LIBVLC_MODULES_H 1
+
/* Number of tries before we unload an unused module */
#define MODULE_HIDE_DELAY 50
#define MODULE_SHORTCUT_MAX 50
/* The module handle type. */
-#if defined(HAVE_DL_DYLD) && !defined(__x86_64__)
+#if defined(HAVE_DL_DYLD)
# if defined (HAVE_MACH_O_DYLD_H)
# include <mach-o/dyld.h>
# endif