From bc06c745d9fc863ca8bc2811a1654cf0269ed874 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 9 Oct 2009 23:07:30 +0000 Subject: [PATCH] * plugin.cc: Don't include dlfcn.h when ENABLE_PLUGINS is not defined. --- gold/ChangeLog | 5 +++++ gold/plugin.cc | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gold/ChangeLog b/gold/ChangeLog index 05320fa9152..098d347f8a2 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2009-10-09 Andrew Pinski + + * plugin.cc: Don't include dlfcn.h when ENABLE_PLUGINS is not + defined. + 2009-10-09 Andrew Pinski * dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info): diff --git a/gold/plugin.cc b/gold/plugin.cc index ccbcffd807c..104ac5cf946 100644 --- a/gold/plugin.cc +++ b/gold/plugin.cc @@ -25,7 +25,10 @@ #include #include #include + +#ifdef ENABLE_PLUGINS #include +#endif #include "gold.h" #include "parameters.h" -- 2.30.2