From aebd3a7c76a81e3c88d497f94bf0616545abdf5f Mon Sep 17 00:00:00 2001 From: Dave Korn Date: Fri, 15 Oct 2010 16:21:40 +0000 Subject: Provide win32-based dlapi replacements on windows platforms without dlfcn.h. ld/ChangeLog: * configure.in: If can't be found, try for * 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 from ENABLE_PLUGINS anymore, use its own guard. --- ld/sysdep.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ld/sysdep.h') 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 #endif -- cgit v1.2.1