From 4de6f3a73557451af772a440e86bcf5f544974ba Mon Sep 17 00:00:00 2001 From: Wolfram Manthey Date: Mon, 2 Jul 2018 08:01:53 +0800 Subject: [PATCH] Fixed macOS build issue and integer precision warning --- library/zonedetect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/zonedetect.c b/library/zonedetect.c index 74bb8f4..ed7b895 100644 --- a/library/zonedetect.c +++ b/library/zonedetect.c @@ -26,6 +26,7 @@ */ #include +#include #include #include #include @@ -36,7 +37,7 @@ struct ZoneDetectOpaque { int fd; - uint32_t length; + off_t length; uint8_t* mapping; uint8_t tableType;