tools/mklibs: add missing <unistd.h> in readelf/elf.cpp
[15.05/openwrt.git] / 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 (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;
+