Include some needed headers in bcompat on *BSD - dedup - deduplicating backup program
HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 2bd17f0fc119a96101741081d04a0d236bc96861
DIR parent 873f8140b3c1861e5baa5c2dd93f83dfb1d1bc2a
HTML 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
@@ -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)
{