[vlc-commits] Remove old checks for dlfcn.h and sys/dl.h

Rémi Denis-Courmont git at videolan.org
Tue Aug 23 17:12:12 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 23 18:03:19 2011 +0300| [fcb8fce6da884cdb684a19ef3d298572906b3619] | committer: Rémi Denis-Courmont

Remove old checks for dlfcn.h and sys/dl.h

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

 configure.ac              |    1 -
 modules/codec/realvideo.c |    9 ++-------
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/configure.ac b/configure.ac
index 54788cd..0f7ea99 100644
--- a/configure.ac
+++ b/configure.ac
@@ -713,7 +713,6 @@ fi
 # Only test for dlopen() if the others didn't work
 LIBDL=""
 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, [
     ac_cv_my_have_dlopen=yes
diff --git a/modules/codec/realvideo.c b/modules/codec/realvideo.c
index 3e43f56..98a6a9a 100644
--- a/modules/codec/realvideo.c
+++ b/modules/codec/realvideo.c
@@ -45,13 +45,8 @@ int WINAPI FreeLibrary( void *handle );
 #   define WINAPI
 #endif
 
-#if defined(HAVE_DL_DLOPEN)
-#   if defined(HAVE_DLFCN_H) /* Linux, BSD, Hurd */
-#       include <dlfcn.h>
-#   endif
-#   if defined(HAVE_SYS_DL_H)
-#       include <sys/dl.h>
-#   endif
+#ifndef WIN32
+#   include <dlfcn.h>
 #endif
 
 typedef struct cmsg_data_s



More information about the vlc-commits mailing list