tools/mklibs: add missing <unistd.h> in readelf/elf.cpp
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 16 Apr 2012 15:11:32 +0000 (15:11 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 16 Apr 2012 15:11:32 +0000 (15:11 +0000)
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

tools/mklibs/patches/011-missing_unistd.patch [new file with mode: 0644]

diff --git a/tools/mklibs/patches/011-missing_unistd.patch b/tools/mklibs/patches/011-missing_unistd.patch
new file mode 100644 (file)
index 0000000..c237812
--- /dev/null
@@ -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;
+