Fixed another small libelf problem, everything should work now, on any
machine. base/loader/elf_object.hh: put #defines for libelf that normally arn't defined so that -Wundef doesn't cause problems. --HG-- extra : convert_revision : fa2de6aa94c7ddbaa59990db4473402b0df7d93a
This commit is contained in:
parent
e7033f718f
commit
98613950a3
1 changed files with 6 additions and 1 deletions
|
@ -29,8 +29,13 @@
|
||||||
#ifndef __ELF_OBJECT_HH__
|
#ifndef __ELF_OBJECT_HH__
|
||||||
#define __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/libelf.h>
|
||||||
|
#include <libelf/gelf.h>
|
||||||
#include "base/loader/object_file.hh"
|
#include "base/loader/object_file.hh"
|
||||||
|
|
||||||
class ElfObject : public ObjectFile
|
class ElfObject : public ObjectFile
|
||||||
|
|
Loading…
Reference in a new issue