Fixes compile on my Arch Linux system, as unistd.h is needed for ::close().
Signed-off-by: Matthias Schiffer <[email protected]> --- tools/mklibs/patches/011-missing_unistd.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tools/mklibs/patches/011-missing_unistd.patch 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; + -- 1.7.10 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
