tInclude some needed headers in bcompat on *BSD - dedup - deduplicating backup program
(HTM) git clone git://git.z3bra.org/dedup.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 2bd17f0fc119a96101741081d04a0d236bc96861
(DIR) parent 873f8140b3c1861e5baa5c2dd93f83dfb1d1bc2a
(HTM) Author: sin <sin@2f30.org>
Date: Fri, 26 Apr 2019 15:46:17 +0100
Include some needed headers in bcompat on *BSD
Diffstat:
M bcompat.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/bcompat.c b/bcompat.c
t@@ -11,6 +11,9 @@ punchhole(int fd, off_t offset, off_t len)
return fallocate(fd, mode, offset, len);
}
#else
+#include <sys/types.h>
+#include <unistd.h>
+
int
punchhole(int fd, off_t offset, off_t len)
{