summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2023-02-21 19:40:44 +0100
committerChristian Göttsche <cgzones@googlemail.com>2023-02-21 19:40:44 +0100
commitce5907fc40d5e355872a4288fde3de7586e6e766 (patch)
tree27a97410c9b575ea2341ff64a5b5067e18445c09
parent8d3188daa7fbefb93e8d967d2967ca45934c30aa (diff)
downloadpatchelf-ce5907fc40d5e355872a4288fde3de7586e6e766.tar.gz
Add required includes in header file
Enable to parse the header file on its own, e.g. for language servers (clangd).
-rw-r--r--src/patchelf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/patchelf.h b/src/patchelf.h
index c3096ff..1308815 100644
--- a/src/patchelf.h
+++ b/src/patchelf.h
@@ -1,3 +1,12 @@
+#include <map>
+#include <memory>
+#include <optional>
+#include <set>
+#include <string>
+#include <vector>
+
+#include "elf.h"
+
using FileContents = std::shared_ptr<std::vector<unsigned char>>;
#define ElfFileParams class Elf_Ehdr, class Elf_Phdr, class Elf_Shdr, class Elf_Addr, class Elf_Off, class Elf_Dyn, class Elf_Sym, class Elf_Verneed, class Elf_Versym