diff options
author | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-09 12:41:33 +0000 |
---|---|---|
committer | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-09 12:41:33 +0000 |
commit | bbcdd32763124d307512585ce272d61b7bfeddd6 (patch) | |
tree | bec947dc3d9b40739c6aa9483adc0bc42e052059 /gcc/system.h | |
parent | cf25639386302ba6401b9fd891ef8f3dd62a1824 (diff) | |
download | gcc-bbcdd32763124d307512585ce272d61b7bfeddd6.tar.gz |
PR gcc/46902
PR testsuite/46912
* plugin.c: Move include of dlfcn.h from here...
* system.h: ... to here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168611 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h index a9a29f16b21..0bf9b925685 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -583,6 +583,11 @@ extern int vsnprintf(char *, size_t, const char *, va_list); # endif #endif +#if defined (ENABLE_PLUGIN) && defined (HAVE_DLFCN_H) +/* If plugin support is enabled, we could use libdl. */ +#include <dlfcn.h> +#endif + /* Get libiberty declarations. */ #include "libiberty.h" |