diff options
author | Iain Sandoe <iains@gcc.gnu.org> | 2011-01-09 12:41:33 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2011-01-09 12:41:33 +0000 |
commit | 0c5d770e3b46be27a9ba00351fdadc75ff97f10e (patch) | |
tree | bec947dc3d9b40739c6aa9483adc0bc42e052059 /gcc/system.h | |
parent | b52956be02218c3fda87f05f821e971879df83e5 (diff) | |
download | gcc-0c5d770e3b46be27a9ba00351fdadc75ff97f10e.zip gcc-0c5d770e3b46be27a9ba00351fdadc75ff97f10e.tar.gz gcc-0c5d770e3b46be27a9ba00351fdadc75ff97f10e.tar.bz2 |
re PR c/46902 (gcc.dg/plugin/plugindir*.c gives ICEs on powerpc-apple-darwin9)
PR gcc/46902
PR testsuite/46912
* plugin.c: Move include of dlfcn.h from here...
* system.h: ... to here.
From-SVN: r168611
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 a9a29f1..0bf9b92 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" |