pkgsrc/sysutils/diskscrub/patches/patch-src_util.h
sevan cfa4871f5f Add a new header check for sys/mman.h & use it in src/util.h
Resolves build issue on FreeBSD as off_t is defined in sys/mman.h

Reviewed by: wiz@
2015-03-05 21:29:20 +00:00

15 lines
312 B
C

$NetBSD: patch-src_util.h,v 1.1 2015/03/05 21:29:20 sevan Exp $
--- src/util.h.orig 2015-03-05 19:13:14.116234563 +0000
+++ src/util.h
@@ -30,6 +30,10 @@
typedef enum { false, true } bool;
#endif
+#ifdef HAVE_SYS_MMAN_H
+#include <sys/mman.h>
+#endif
+
typedef enum {
FILE_NOEXIST,
FILE_REGULAR,