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 \
asm/types.h \
asm/user.h \
dirent.h \
dlfcn.h \
elf.h \
float.h \
gettext-po.h \
......
......@@ -447,7 +447,6 @@ AC_CHECK_HEADERS(\
asm/types.h \
asm/user.h \
dirent.h \
dlfcn.h \
elf.h \
float.h \
gettext-po.h \
......
......@@ -59,9 +59,6 @@
file. */
#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. */
#undef HAVE_DLINFO
......
......@@ -46,13 +46,10 @@
#if defined(_WIN32) && !defined(__CYGWIN__)
#include <direct.h>
#include <errno.h>
#include <io.h>
#include <process.h>
static inline void *dlopen(const char *name, int flags) { return NULL; }
static inline void *dlsym(void *handle, const char *name) { return NULL; }
#define dlopen(name,flags) NULL
#define dlsym(handle,name) NULL
static inline int dlclose(void *handle) { return 0; }
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; }
......@@ -67,19 +64,11 @@ static inline int symlink(const char *from, const char *to) { errno = ENOSYS; re
#endif
#endif
#endif /* _WIN32 */
/****************************************************************
* Macro definitions
*/
#else
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#else
#define RTLD_LAZY 0x001
#define RTLD_NOW 0x002
#define RTLD_GLOBAL 0x100
#endif
#endif /* _WIN32 */
/****************************************************************
* 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