From 801647d1db24c7bd12b01f8c2aa0df494776c1f7 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 24 Jul 2008 21:45:50 +0000 Subject: [PATCH] PR 6716 * gold.h: Always include . Add Solaris workarounds following code in binutils/sysdep.h. --- gold/ChangeLog | 4 ++++ gold/gold.h | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/gold/ChangeLog b/gold/ChangeLog index 70376251cbf..657f644d564 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,5 +1,9 @@ 2008-07-24 Ian Lance Taylor + PR 6716 + * gold.h: Always include . Add Solaris workarounds + following code in binutils/sysdep.h. + PR 6048 * ehframe.cc (Eh_frame::add_ehframe_input_section): Check whether this->eh_frame_hdr_ is NULL before using it. diff --git a/gold/gold.h b/gold/gold.h index 03e73d3c023..63df9942ffd 100644 --- a/gold/gold.h +++ b/gold/gold.h @@ -29,6 +29,20 @@ #include #include +#ifndef ENABLE_NLS + // The Solaris version of locale.h always includes libintl.h. If we + // have been configured with --disable-nls then ENABLE_NLS will not + // be defined and the dummy definitions of bindtextdomain (et al) + // below will conflict with the defintions in libintl.h. So we + // define these values to prevent the bogus inclusion of libintl.h. +# define _LIBINTL_H +# define _LIBGETTEXT_H +#endif + +// Always include first to avoid conflicts with the macros +// used when ENABLE_NLS is not defined. +#include + #ifdef ENABLE_NLS # include # define _(String) gettext (String) -- 2.30.2