summaryrefslogtreecommitdiffstats
path: root/hwaccess_physmap.c
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2022-03-18 20:47:13 +0100
committerAngel Pons <th3fanbus@gmail.com>2022-04-10 08:47:41 +0000
commit32aa9059bc6b5da05b7bb0288758e22fd9d18901 (patch)
treee5914f36e98aff97e9b836a8c58d5bdbb11e098b /hwaccess_physmap.c
parentc9535ff73d0d8410e7fe5fbb2eb9d06a320b318a (diff)
downloadflashrom-32aa9059bc6b5da05b7bb0288758e22fd9d18901.tar.gz
flashrom-32aa9059bc6b5da05b7bb0288758e22fd9d18901.tar.bz2
flashrom-32aa9059bc6b5da05b7bb0288758e22fd9d18901.zip
hwaccess_physmap: add missing DirectHW include
For MACH / APPLE map_physical is defined in DirectHW.h TEST: run `make` compiles, linking fails due to missing directhw object in my setup, don't know how to fix this Change-Id: I0e0f3fd587ae46e6f73418f2c83641cb1202478c Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/62929 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'hwaccess_physmap.c')
-rw-r--r--hwaccess_physmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hwaccess_physmap.c b/hwaccess_physmap.c
index b1b9c6487..7afe60d7d 100644
--- a/hwaccess_physmap.c
+++ b/hwaccess_physmap.c
@@ -133,6 +133,7 @@ static void sys_physunmap_unaligned(void *virt_addr, size_t len)
{
}
#elif defined(__MACH__) && defined(__APPLE__)
+#include <DirectHW/DirectHW.h>
#define MEM_DEV "DirectHW"