From e9f8c2cd7be8f75fb1d6d9bdb7f3f418d5068e04 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 3 Apr 2011 16:00:01 -0400 Subject: pull in the FreeBSD libdwarf, so that we can compile without an external dependency. --- libctf/ctf_impl.h | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'libctf/ctf_impl.h') diff --git a/libctf/ctf_impl.h b/libctf/ctf_impl.h index f0f0d55..d7f0075 100644 --- a/libctf/ctf_impl.h +++ b/libctf/ctf_impl.h @@ -41,7 +41,7 @@ #if HAVE_SYS_ERRNO_H # include #endif -#if HAVE_SYS_SYSMACROS_H +#ifdef sun # include #else # include "pctf/sysmacros.h" @@ -93,19 +93,26 @@ #if HAVE_SYS_ELF_H # include #endif -#if HAVE_LIBDWARF_H -# include -#endif #if HAVE_LIBGEN_H # include #endif -#if HAVE_DWARF_H -# include -#endif +#include "libdwarf/dwarf.h" +#include "libdwarf/libdwarf.h" #if HAVE_STDINT_H # include #endif #include +#if HAVE_SYS_PARAM_H +# include +#endif +#include + +#ifndef NBBY +# define NBBY 8 +#endif +#ifndef __unused +# define __unused +#endif #ifdef __cplusplus extern "C" { -- cgit v1.2.3