summaryrefslogtreecommitdiff
path: root/libctf
diff options
context:
space:
mode:
Diffstat (limited to 'libctf')
-rw-r--r--libctf/ctf_impl.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/libctf/ctf_impl.h b/libctf/ctf_impl.h
index a8f0787..14d2735 100644
--- a/libctf/ctf_impl.h
+++ b/libctf/ctf_impl.h
@@ -81,12 +81,6 @@
#if HAVE_ZLIB_H
# include <zlib.h>
#endif
-#if HAVE_GELF_H
-# include <gelf.h>
-#endif
-#if HAVE_LIBELF_H
-# include <libelf.h>
-#endif
#if HAVE_PTHREAD_H
# include <pthread.h>
#endif
@@ -96,8 +90,6 @@
#if HAVE_LIBGEN_H
# include <libgen.h>
#endif
-#include "libdwarf/dwarf.h"
-#include "libdwarf/libdwarf.h"
#if HAVE_STDINT_H
# include <stdint.h>
#endif
@@ -114,6 +106,20 @@
# define __unused
#endif
+#if HAVE_GELF_H
+# include <gelf.h>
+#else
+# include "libelf/gelf.h"
+#endif
+
+#if HAVE_LIBDWARF_H
+# include <dwarf.h>
+# include <libdwarf.h>
+#else
+# include "libdwarf/dwarf.h"
+# include "libdwarf/libdwarf.h"
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif