forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 53b9f97fb7faed043134f2ab738347b20379d32f Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 6 Jun 2017 07:39:28 -0700
Subject: [PATCH 5/6] Undefine PAGE_SIZE
 
musl defines PAGE_SIZE and build complains
of multiple definitions
 
Upstream-Status: Pending
 
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 src/lib/src/fwts_acpi_tables.c | 1 +
 1 file changed, 1 insertion(+)
 
diff --git a/src/lib/src/fwts_acpi_tables.c b/src/lib/src/fwts_acpi_tables.c
index dc42a8bd..4fa1246a 100644
--- a/src/lib/src/fwts_acpi_tables.c
+++ b/src/lib/src/fwts_acpi_tables.c
@@ -42,6 +42,7 @@
 #define BIOS_START    (0x000e0000)        /* Start of BIOS memory */
 #define BIOS_END      (0x000fffff)        /* End of BIOS memory */
 #define BIOS_LENGTH    (BIOS_END - BIOS_START)    /* Length of BIOS memory */
+#undef PAGE_SIZE
 #define PAGE_SIZE    (4096)
 
 static fwts_acpi_table_info    tables[ACPI_MAX_TABLES];
-- 
2.25.1