aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat/linux-personality.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/nat/linux-personality.c')
-rw-r--r--gdb/nat/linux-personality.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/nat/linux-personality.c b/gdb/nat/linux-personality.c
index 9ce345b..27999fd 100644
--- a/gdb/nat/linux-personality.c
+++ b/gdb/nat/linux-personality.c
@@ -22,6 +22,10 @@
#include <sys/personality.h>
+# if !HAVE_DECL_ADDR_NO_RANDOMIZE
+# define ADDR_NO_RANDOMIZE 0x0040000
+# endif /* ! HAVE_DECL_ADDR_NO_RANDOMIZE */
+
/* See comment on nat/linux-personality.h. */
maybe_disable_address_space_randomization::