openwrt-owl/tools/e2fsprogs/patches/004-freebsd-compat.patch

13 lines
213 B
Diff

--- a/lib/ext2fs/tdb.c
+++ b/lib/ext2fs/tdb.c
@@ -56,7 +56,9 @@
#include <utime.h>
#endif
#include <sys/stat.h>
+#ifndef __FreeBSD__
#include <sys/file.h>
+#endif
#include <fcntl.h>
#ifdef HAVE_SYS_MMAN_H