aboutsummaryrefslogtreecommitdiff
path: root/gold/plugin.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-10-09 23:07:30 +0000
committerIan Lance Taylor <ian@airs.com>2009-10-09 23:07:30 +0000
commitbc06c745d9fc863ca8bc2811a1654cf0269ed874 (patch)
tree83f7845cb4f50d778737973ca174e0e43635ade9 /gold/plugin.cc
parent75aea3d03d18b74edb7290a3af15d937fe79f6d4 (diff)
downloadgdb-bc06c745d9fc863ca8bc2811a1654cf0269ed874.zip
gdb-bc06c745d9fc863ca8bc2811a1654cf0269ed874.tar.gz
gdb-bc06c745d9fc863ca8bc2811a1654cf0269ed874.tar.bz2
* plugin.cc: Don't include dlfcn.h when ENABLE_PLUGINS is not
defined.
Diffstat (limited to 'gold/plugin.cc')
-rw-r--r--gold/plugin.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/plugin.cc b/gold/plugin.cc
index ccbcffd..104ac5c 100644
--- a/gold/plugin.cc
+++ b/gold/plugin.cc
@@ -25,7 +25,10 @@
#include <cstring>
#include <string>
#include <vector>
+
+#ifdef ENABLE_PLUGINS
#include <dlfcn.h>
+#endif
#include "gold.h"
#include "parameters.h"