aboutsummaryrefslogtreecommitdiff
path: root/sim/arm
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-06 20:40:20 -0400
committerMike Frysinger <vapier@gentoo.org>2021-11-06 20:40:20 -0400
commitfd0975b96b16d96010dce439af9620d3dfb65426 (patch)
tree531211675eb93b447ea75c3c284547d0442b0994 /sim/arm
parentb44c5d6e216cb085023d14005f08258be562ba90 (diff)
downloadgdb-fd0975b96b16d96010dce439af9620d3dfb65426.zip
gdb-fd0975b96b16d96010dce439af9620d3dfb65426.tar.gz
gdb-fd0975b96b16d96010dce439af9620d3dfb65426.tar.bz2
sim: arm/bfin/rx: undefine page size from system headers
Some targets (like cygwin) will export page size defines that clash with our local usage here. Undefine the system one to fix building for these targets.
Diffstat (limited to 'sim/arm')
-rw-r--r--sim/arm/armvirt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/arm/armvirt.c b/sim/arm/armvirt.c
index ba01a65..c162ba7 100644
--- a/sim/arm/armvirt.c
+++ b/sim/arm/armvirt.c
@@ -46,6 +46,7 @@
#endif
+#undef PAGESIZE /* Cleanup system headers. */
#define NUMPAGES 64 * 1024
#define PAGESIZE 64 * 1024
#define PAGEBITS 16