From 84b8cb41945586d1c3d7ff9ebe4df2506c51d2c3 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 3 Apr 2011 21:42:26 -0400 Subject: pull in the freebsd 8.2 libelf; primarily so we can build on darwin. --- libctf/ctf_impl.h | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'libctf') 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 #endif -#if HAVE_GELF_H -# include -#endif -#if HAVE_LIBELF_H -# include -#endif #if HAVE_PTHREAD_H # include #endif @@ -96,8 +90,6 @@ #if HAVE_LIBGEN_H # include #endif -#include "libdwarf/dwarf.h" -#include "libdwarf/libdwarf.h" #if HAVE_STDINT_H # include #endif @@ -114,6 +106,20 @@ # define __unused #endif +#if HAVE_GELF_H +# include +#else +# include "libelf/gelf.h" +#endif + +#if HAVE_LIBDWARF_H +# include +# include +#else +# include "libdwarf/dwarf.h" +# include "libdwarf/libdwarf.h" +#endif + #ifdef __cplusplus extern "C" { #endif -- cgit v1.2.3