From 1f77bfff9608f97996bffdb28dabec4e787631f6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 7 Mar 2013 17:32:29 +0000 Subject: build: BSD compile fixes following patch allows to build images for Qemu ARM on OpenBSD 5.2 amd64 and FreeBSD 9.1 amd64. Mostly small pieces of code changes to get things right on the specific platform. Updated the README to describe better, which tools on the host are required. Added some kind of prepare scripts to install needed tools on BSD via packages. Signed-off-by: Waldemar Brodkorb SVN-Revision: 35900 --- tools/e2fsprogs/patches/004-freebsd-compat.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tools/e2fsprogs/patches/004-freebsd-compat.patch (limited to 'tools/e2fsprogs/patches/004-freebsd-compat.patch') diff --git a/tools/e2fsprogs/patches/004-freebsd-compat.patch b/tools/e2fsprogs/patches/004-freebsd-compat.patch new file mode 100644 index 0000000..5eff499 --- /dev/null +++ b/tools/e2fsprogs/patches/004-freebsd-compat.patch @@ -0,0 +1,13 @@ +diff -Nur e2fsprogs-1.42.7.orig/lib/ext2fs/tdb.c e2fsprogs-1.42.7/lib/ext2fs/tdb.c +--- e2fsprogs-1.42.7.orig/lib/ext2fs/tdb.c 2012-07-06 15:37:27.000000000 +0200 ++++ e2fsprogs-1.42.7/lib/ext2fs/tdb.c 2013-03-07 14:54:59.000000000 +0100 +@@ -56,7 +56,9 @@ + #include + #endif + #include ++#ifndef __FreeBSD__ + #include ++#endif + #include + + #ifdef HAVE_SYS_MMAN_H -- cgit v1.1