summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2024-04-02 08:18:52 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2024-04-02 08:18:52 +0200
commit6c29fe42e9d08ccd23c11dfc922770b2912bb5e0 (patch)
tree0b40411c7558bed913d2ad6a0460ef83bb0368fa /src
parentcf63dbbf1e195cfb0e9f298cc97fdf747c557ec9 (diff)
paddr_t may be already defined in sys/types.h - Fix compilation on OpenBSDHEADmaster
See https://github.com/cgsecurity/testdisk/issues/152
Diffstat (limited to 'src')
-rw-r--r--src/apfs_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apfs_common.h b/src/apfs_common.h
index 724c7132..4d058de2 100644
--- a/src/apfs_common.h
+++ b/src/apfs_common.h
@@ -34,7 +34,9 @@ extern "C"
} __attribute__((gcc_struct, __packed__));
typedef struct obj_phys obj_phys_t;
+#if HAVE_PADDR_T == 0
typedef int64_t paddr_t;
+#endif
struct prange {
paddr_t pr_start_paddr;