aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2018-01-24 09:09:49 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-01-24 09:09:49 +0000
commit30e457b17f5c12002e2837a114b9c173bc3c8e51 (patch)
tree10e73580ded2d55cf50208ee757faf09a9fba9f1
parent3484704dbc9a05c172a2d025ddc62cf63a1ee8d8 (diff)
parentb7cd86b9ce44375c2c311724226cad11c05bb5b7 (diff)
downloadminijail-30e457b17f5c12002e2837a114b9c173bc3c8e51.tar.gz
move elfparse includes to the module itself am: 37c8e3c55c am: 87dbedeba0
am: b7cd86b9ce Change-Id: I7af1c1844929ee6fad0704b1c27133ad11f3ccd6
-rw-r--r--elfparse.c7
-rw-r--r--elfparse.h6
2 files changed, 7 insertions, 6 deletions
diff --git a/elfparse.c b/elfparse.c
index cd032af..4e74816 100644
--- a/elfparse.c
+++ b/elfparse.c
@@ -3,6 +3,13 @@
* found in the LICENSE file.
*/
+#include <elf.h>
+#include <endian.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
#include "elfparse.h"
int is_elf_magic (const uint8_t *buf)
diff --git a/elfparse.h b/elfparse.h
index 599eb11..4fdd0a1 100644
--- a/elfparse.h
+++ b/elfparse.h
@@ -9,13 +9,7 @@
#ifndef _ELFPARSE_H_
#define _ELFPARSE_H_
-#include <stdio.h>
-#include <stdlib.h>
#include <elf.h>
-#include <unistd.h>
-#include <stdint.h>
-#include <endian.h>
-#include <string.h>
/*
* These structs come from elf.h