summaryrefslogtreecommitdiff
path: root/runtime/oat_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/oat_file.cc')
-rw-r--r--runtime/oat_file.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/oat_file.cc b/runtime/oat_file.cc
index 67803b6121..6edf4480a7 100644
--- a/runtime/oat_file.cc
+++ b/runtime/oat_file.cc
@@ -16,6 +16,9 @@
#include "oat_file.h"
+// Our elf.h needs to be included before the system one is indirectly included.
+#include "elf/elf.h"
+
#include <dlfcn.h>
#ifndef __APPLE__
#include <link.h> // for dl_iterate_phdr.