build: BSD compile fixes
[openwrt.git] / tools / e2fsprogs / patches / 004-freebsd-compat.patch
1 diff -Nur e2fsprogs-1.42.7.orig/lib/ext2fs/tdb.c e2fsprogs-1.42.7/lib/ext2fs/tdb.c
2 --- e2fsprogs-1.42.7.orig/lib/ext2fs/tdb.c      2012-07-06 15:37:27.000000000 +0200
3 +++ e2fsprogs-1.42.7/lib/ext2fs/tdb.c   2013-03-07 14:54:59.000000000 +0100
4 @@ -56,7 +56,9 @@
5  #include <utime.h>
6  #endif
7  #include <sys/stat.h>
8 +#ifndef __FreeBSD__
9  #include <sys/file.h>
10 +#endif
11  #include <fcntl.h>
12  
13  #ifdef HAVE_SYS_MMAN_H