diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-04-16 15:11:32 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-04-16 15:11:32 +0000 |
commit | a8d663260d3f628a040bfc195f80da2baa5e4157 (patch) | |
tree | 80651e284578c9e1c4d64e62c9ede84ca65f663f | |
parent | a0f0213462a338b776787016b6b6125ab49a48fb (diff) | |
download | upstream-a8d663260d3f628a040bfc195f80da2baa5e4157.tar.gz upstream-a8d663260d3f628a040bfc195f80da2baa5e4157.tar.bz2 upstream-a8d663260d3f628a040bfc195f80da2baa5e4157.zip |
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
-rw-r--r-- | tools/mklibs/patches/011-missing_unistd.patch | 10 |
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 0000000000..c237812688 --- /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; + |