summaryrefslogtreecommitdiff
path: root/tools/mklibs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-04-16 15:11:32 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-04-16 15:11:32 +0000
commita8d663260d3f628a040bfc195f80da2baa5e4157 (patch)
tree80651e284578c9e1c4d64e62c9ede84ca65f663f /tools/mklibs
parenta0f0213462a338b776787016b6b6125ab49a48fb (diff)
downloadmtk-20170518-a8d663260d3f628a040bfc195f80da2baa5e4157.zip
mtk-20170518-a8d663260d3f628a040bfc195f80da2baa5e4157.tar.gz
mtk-20170518-a8d663260d3f628a040bfc195f80da2baa5e4157.tar.bz2
tools/mklibs: add missing <unistd.h> in readelf/elf.cpp
Fixes compile on my Arch Linux system, as unistd.h is needed for ::close(). Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> SVN-Revision: 31315
Diffstat (limited to 'tools/mklibs')
-rw-r--r--tools/mklibs/patches/011-missing_unistd.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/mklibs/patches/011-missing_unistd.patch b/tools/mklibs/patches/011-missing_unistd.patch
new file mode 100644
index 0000000..c237812
--- /dev/null
+++ b/tools/mklibs/patches/011-missing_unistd.patch
@@ -0,0 +1,10 @@
+--- 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;
+