diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/loader/elf_object.hh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/base/loader/elf_object.hh b/base/loader/elf_object.hh index afd4cd62b..9f0385d86 100644 --- a/base/loader/elf_object.hh +++ b/base/loader/elf_object.hh @@ -29,8 +29,13 @@ #ifndef __ELF_OBJECT_HH__ #define __ELF_OBJECT_HH__ -#include <libelf/gelf.h> +/* Because of the -Wundef flag we have to do this */ +#define __LIBELF_INTERNAL__ 0 +#define __LIBELF64_LINUX 1 +#define __LIBELF_NEED_LINK_H 0 + #include <libelf/libelf.h> +#include <libelf/gelf.h> #include "base/loader/object_file.hh" class ElfObject : public ObjectFile |