diff options
author | Dave Korn <dave.korn@artimi.com> | 2010-10-15 16:21:40 +0000 |
---|---|---|
committer | Dave Korn <dave.korn@artimi.com> | 2010-10-15 16:21:40 +0000 |
commit | aebd3a7c76a81e3c88d497f94bf0616545abdf5f (patch) | |
tree | 487d999456d8f309a0f553e358185df212bf27b4 /ld/sysdep.h | |
parent | dc814f0f09ac2da6273b77183fbc66ceb3c9218f (diff) | |
download | binutils-redhat-aebd3a7c76a81e3c88d497f94bf0616545abdf5f.tar.gz |
Provide win32-based dlapi replacements on windows platforms without dlfcn.h.
ld/ChangeLog:
* configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
* configure: Regenerate.
* config.in: Likewise.
* plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
trival LoadLibrary-based replacement for Windows systems.
[!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
replacement based on GetProcAddress.
[!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
* sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
anymore, use its own guard.
Diffstat (limited to 'ld/sysdep.h')
-rw-r--r-- | ld/sysdep.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ld/sysdep.h b/ld/sysdep.h index 9dfae105d5..b7d5b88a85 100644 --- a/ld/sysdep.h +++ b/ld/sysdep.h @@ -90,8 +90,7 @@ extern char *strrchr (); #endif #endif -/* This is both more precise than and includes HAVE_DLFCN_H. */ -#ifdef ENABLE_PLUGINS +#ifdef HAVE_DLFCN_H #include <dlfcn.h> #endif |