Skip to content
Snippets Groups Projects
Commit 1b757884 authored by Mirko Vogt's avatar Mirko Vogt
Browse files

add missing includes ('unistd.h') for mklibs

This is needed when compiling with GCC >= 4.7.0 since it doesn't implicitly include 'unistd.h' anymore (needed e.g. for file operations in this particular case)

 - Thanks to Luka Perkov

SVN-Revision: 31259
parent 3c3941f1
No related branches found
No related tags found
Loading
--- 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;
--- a/src/mklibs-readelf/main.cpp --- a/src/mklibs-readelf/main.cpp
+++ b/src/mklibs-readelf/main.cpp +++ b/src/mklibs-readelf/main.cpp
@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
for (std::vector<Elf::dynamic *>::const_iterator it = section->get_dynamics ().begin (); it != section->get_dynamics ().end (); ++it) for (std::vector<Elf::dynamic *>::const_iterator it = section->get_dynamics ().begin (); it != section->get_dynamics ().end (); ++it)
{ {
Elf::dynamic *dynamic = *it; Elf::dynamic *dynamic = *it;
@@ -67,6 +71,9 @@ static void process_dynamics (Elf::file @@ -67,6 +71,9 @@ static void process_dynamics (Elf::file
static void process_symbols_provided (const Elf::section_type<Elf::section_type_DYNSYM> *section) static void process_symbols_provided (const Elf::section_type<Elf::section_type_DYNSYM> *section)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment