Fixed another small libelf problem, everything should work now, on any
authorAli Saidi <saidi@eecs.umich.edu>
Thu, 8 Jan 2004 21:35:47 +0000 (16:35 -0500)
committerAli Saidi <saidi@eecs.umich.edu>
Thu, 8 Jan 2004 21:35:47 +0000 (16:35 -0500)
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

base/loader/elf_object.hh

index afd4cd62b50a711ba7c875f2f82376497d7e772f..9f0385d86aee24fe2e4ce9d7d4b0b91b5c5a6d9a 100644 (file)
 #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