From 4c347be60a1c25f78826fbf86d416a278740145b Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Fri, 16 Jan 2015 11:42:28 -0500 Subject: Fix nat/linux-personality.c regression on RHEL-5 This commit fixes the regression on RHEL-5 systems introduced by nat/linux-personality.c's check of HAVE_DECL_ADDR_NO_RANDOMIZE. RHEL-5 systems define HAVE_DECL_ADDR_NO_RANDOMIZE as zero, so we cannot use #ifndef; instead this patch uses the "#if !" construction. The regression was reported by Ulrich Weigand here: gdb/ChangeLog 2015-01-16 Sergio Durigan Junior * nat/linux-personality.c: Replace "#ifndef HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5 systems. --- gdb/nat/linux-personality.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/nat/linux-personality.c') diff --git a/gdb/nat/linux-personality.c b/gdb/nat/linux-personality.c index f61a2c6..3ea8755 100644 --- a/gdb/nat/linux-personality.c +++ b/gdb/nat/linux-personality.c @@ -22,7 +22,7 @@ #ifdef HAVE_PERSONALITY # include -# ifndef HAVE_DECL_ADDR_NO_RANDOMIZE +# if !HAVE_DECL_ADDR_NO_RANDOMIZE # define ADDR_NO_RANDOMIZE 0x0040000 # endif /* ! HAVE_DECL_ADDR_NO_RANDOMIZE */ #endif /* HAVE_PERSONALITY */ -- cgit v1.1