From: Hans-Peter Nilsson Date: Sat, 24 Mar 2012 09:31:09 +0000 (+0000) Subject: * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f914e38494c6f9979337a59c26d57117111b6125;p=binutils-gdb.git * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza missing in last change. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 9fea9033790..6e6d2fd7035 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2012-03-24 Hans-Peter Nilsson + + * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza + missing in last change. + 2012-03-24 Mike Frysinger * acinclude.m4 (SIM_AC_COMMON): Call AC_USE_SYSTEM_EXTENSIONS. diff --git a/sim/common/nrun.c b/sim/common/nrun.c index 8e928798278..aa60c42647b 100644 --- a/sim/common/nrun.c +++ b/sim/common/nrun.c @@ -14,6 +14,12 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ +/* Need to be before general includes, to pick up e.g. _GNU_SOURCE. */ +#ifdef HAVE_CONFIG_H +#include "cconfig.h" +#include "tconfig.h" +#endif + #include /* For strsignal. */