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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-10-11 11:25:10 +02:00
parent ea2c743668
commit 2afb4fd044
4 changed files with 6 additions and 22 deletions

1
configure vendored
View File

@ -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 \

View File

@ -447,7 +447,6 @@ AC_CHECK_HEADERS(\
asm/types.h \
asm/user.h \
dirent.h \
dlfcn.h \
elf.h \
float.h \
gettext-po.h \

View File

@ -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

View File

@ -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
*/
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#else
#define RTLD_LAZY 0x001
#define RTLD_NOW 0x002
#define RTLD_GLOBAL 0x100
#endif
#include <dlfcn.h>
#endif /* _WIN32 */
/****************************************************************
* Constants