[vlc-devel] commit: macosx: prepare the switch from dyld to ' Dynamic Loader Compatibility Functions' as partially intended by [ 7147338b7439f7f4a5d6d9c86e8d5d7a8501be4d] ( Felix Paul Kühne )

git version control git at videolan.org
Sun Aug 2 01:41:50 CEST 2009


vlc | branch: 1.0-bugfix | Felix Paul Kühne <fkuehne at videolan.org> | Sun Aug  2 01:41:00 2009 +0200| [edc0a49763330550629920a6bbddd99fba45aac0] | committer: Felix Paul Kühne 

macosx: prepare the switch from dyld to 'Dynamic Loader Compatibility Functions' as partially intended by [7147338b7439f7f4a5d6d9c86e8d5d7a8501be4d]

Using Apple's legacy object file image functions around NSModule is strongly discouraged and won't work in the future at all.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=edc0a49763330550629920a6bbddd99fba45aac0
---

 configure.ac          |    2 +-
 src/modules/modules.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index ff461fc..d96c618 100644
--- a/configure.ac
+++ b/configure.ac
@@ -795,7 +795,7 @@ if test "${ac_cv_have_plugins}" = "no"; then
 fi
 
 # Only test for dlopen() if the others didn't work
-if test "${ac_cv_have_plugins}" = "no"; then
+if test "${ac_cv_have_plugins}" = "no" -o "${SYS}" = "darwin"; then
   AC_CHECK_HEADERS(dlfcn.h sys/dl.h)
   ac_cv_my_have_dlopen=no
   AC_CHECK_FUNC(dlopen,
diff --git a/src/modules/modules.h b/src/modules/modules.h
index 00836dd..252abe5 100644
--- a/src/modules/modules.h
+++ b/src/modules/modules.h
@@ -76,7 +76,7 @@ struct module_cache_t
 #define MODULE_SHORTCUT_MAX 50
 
 /* The module handle type. */
-#if defined(HAVE_DL_DYLD)
+#if defined(HAVE_DL_DYLD) && !defined(__x86_64__)
 #   if defined (HAVE_MACH_O_DYLD_H)
 #       include <mach-o/dyld.h>
 #   endif




More information about the vlc-devel mailing list