mirror of
https://git.freebsd.org/ports.git
synced 2025-05-01 02:56:39 -04:00
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)
16 lines
274 B
C
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,
|