diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d96cc788704..e0cb2bfd291 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2021-07-07 Rainer Orth + + * sysdep.h [!ENABLE_NLS]: Prevent inclusion of on + Solaris. + 2021-07-07 Rainer Orth * configure.ac: Check for strnlen declaration. diff --git a/bfd/sysdep.h b/bfd/sysdep.h index aa6b095fd05..8919e7689fd 100644 --- a/bfd/sysdep.h +++ b/bfd/sysdep.h @@ -126,6 +126,17 @@ extern int fseeko64 (FILE *stream, off64_t offset, int whence); #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) #endif +#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 +#include + #ifdef ENABLE_NLS # include /* Note the redefinition of gettext and ngettext here to use PACKAGE.