mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-03 14:54:11 +08:00
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
This commit is contained in:
parent
a0f0213462
commit
a8d663260d
10
tools/mklibs/patches/011-missing_unistd.patch
Normal file
10
tools/mklibs/patches/011-missing_unistd.patch
Normal file
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user