summaryrefslogtreecommitdiff
path: root/libctf
diff options
context:
space:
mode:
authorWez Furlong <wez@netevil.org>2011-04-03 21:42:26 -0400
committerWez Furlong <wez@netevil.org>2011-04-03 21:42:26 -0400
commit84b8cb41945586d1c3d7ff9ebe4df2506c51d2c3 (patch)
tree738ca55f76e8240c6f1129399ec8362b7dccac6c /libctf
parent8e4e3efb4e7c3bdb86f247bd161d0809757609c8 (diff)
downloadctf-84b8cb41945586d1c3d7ff9ebe4df2506c51d2c3.tar.gz
pull in the freebsd 8.2 libelf; primarily so we can build on darwin.
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