fix mktools build error on arch linux

This commit is contained in:
bjo 2012-06-20 03:03:06 +00:00
parent 944c8ce8a4
commit f5bc1efab0
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,12 @@
Index: src/mklibs-readelf/elf.cpp
===================================================================
--- a/src/mklibs-readelf/elf.cpp
+++ b/src/mklibs-readelf/elf.cpp
@@ -25,6 +25,7 @@
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
+#include <unistd.h>
using namespace Elf;

View File

@ -15,6 +15,9 @@ prepare() {
#Upgrade batman advanced to version 2012.2.0
svn update --revision=32386 ./build_dir/feeds/packages/net/batman-adv/
#fix mktools build error on arch linux
cp ./build_patches/011-missing_unistd.patch ./build_dir/tools/mklibs/patches/
# fix some tinc mem leaks
mkdir ./build_dir/feeds/packages/net/tinc/patches
cp ./build_patches/tinc/001_fix_a_few_small_memory_leaks.patch ./build_dir/feeds/packages/net/tinc/patches/001_fix_a_few_small_memory_leaks.patch