ports/devel/openocd/files/patch-src_target_nds32__tlb.h
Robert Clausecker 7ff81df978 devel/openocd: Unbreak aarch64 build
Working around an issue where upstream provided page size macros are
colliding with page size macros from <machine/param.h>.

PR:		283034
Reported by:	Duane (parakleta@darkreality.org)
2024-12-23 14:01:12 +01:00

16 lines
274 B
C

--- src/target/nds32_tlb.h.orig 2022-09-18 13:46:16 UTC
+++ src/target/nds32_tlb.h
@@ -10,6 +10,13 @@
#include "nds32.h"
+#ifdef PAGE_SIZE_4K
+# undef PAGE_SIZE_4K
+#endif
+#ifdef PAGE_SIZE_8K
+# undef PAGE_SIZE_8k
+#endif
+
enum {
PAGE_SIZE_4K = 0,
PAGE_SIZE_8K,