Commit 2afb4fd0 authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Assume that dlfcn.h is available on Unix.

parent ea2c7436
...@@ -7476,7 +7476,6 @@ for ac_header in \ ...@@ -7476,7 +7476,6 @@ for ac_header in \
asm/types.h \ asm/types.h \
asm/user.h \ asm/user.h \
dirent.h \ dirent.h \
dlfcn.h \
elf.h \ elf.h \
float.h \ float.h \
gettext-po.h \ gettext-po.h \
......
...@@ -447,7 +447,6 @@ AC_CHECK_HEADERS(\ ...@@ -447,7 +447,6 @@ AC_CHECK_HEADERS(\
asm/types.h \ asm/types.h \
asm/user.h \ asm/user.h \
dirent.h \ dirent.h \
dlfcn.h \
elf.h \ elf.h \
float.h \ float.h \
gettext-po.h \ gettext-po.h \
......
...@@ -59,9 +59,6 @@ ...@@ -59,9 +59,6 @@
file. */ file. */
#undef HAVE_DISKARBITRATION_DISKARBITRATION_H #undef HAVE_DISKARBITRATION_DISKARBITRATION_H
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the `dlinfo' function. */ /* Define to 1 if you have the `dlinfo' function. */
#undef HAVE_DLINFO #undef HAVE_DLINFO
......
...@@ -46,13 +46,10 @@ ...@@ -46,13 +46,10 @@
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32) && !defined(__CYGWIN__)
#include <direct.h>
#include <errno.h> #include <errno.h>
#include <io.h>
#include <process.h>
static inline void *dlopen(const char *name, int flags) { return NULL; } #define dlopen(name,flags) NULL
static inline void *dlsym(void *handle, const char *name) { return NULL; } #define dlsym(handle,name) NULL
static inline int dlclose(void *handle) { return 0; } static inline int dlclose(void *handle) { return 0; }
static inline const char *dlerror(void) { return "No dlopen support on Windows"; } static inline const char *dlerror(void) { return "No dlopen support on Windows"; }
static inline int symlink(const char *from, const char *to) { errno = ENOSYS; return -1; } static inline int symlink(const char *from, const char *to) { errno = ENOSYS; return -1; }
...@@ -67,19 +64,11 @@ static inline int symlink(const char *from, const char *to) { errno = ENOSYS; re ...@@ -67,19 +64,11 @@ static inline int symlink(const char *from, const char *to) { errno = ENOSYS; re
#endif #endif
#endif #endif
#endif /* _WIN32 */ #else
/****************************************************************
* Macro definitions
*/
#ifdef HAVE_DLFCN_H
#include <dlfcn.h> #include <dlfcn.h>
#else
#define RTLD_LAZY 0x001 #endif /* _WIN32 */
#define RTLD_NOW 0x002
#define RTLD_GLOBAL 0x100
#endif
/**************************************************************** /****************************************************************
* Constants * Constants
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment