summaryrefslogtreecommitdiff
path: root/libctf/ctf_impl.h
diff options
context:
space:
mode:
authorWez Furlong <wez@netevil.org>2011-04-03 16:00:01 -0400
committerWez Furlong <wez@netevil.org>2011-04-03 16:00:01 -0400
commite9f8c2cd7be8f75fb1d6d9bdb7f3f418d5068e04 (patch)
tree98ef134b0997b71bc30b176d2752dab7eb3b2c1c /libctf/ctf_impl.h
parentee2b74dbc88c21f3e6c53d6d4f09a69b271755e4 (diff)
downloadctf-e9f8c2cd7be8f75fb1d6d9bdb7f3f418d5068e04.tar.gz
pull in the FreeBSD libdwarf, so that we can compile without an external
dependency.
Diffstat (limited to 'libctf/ctf_impl.h')
-rw-r--r--libctf/ctf_impl.h21
1 files changed, 14 insertions, 7 deletions
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 <sys/errno.h>
#endif
-#if HAVE_SYS_SYSMACROS_H
+#ifdef sun
# include <sys/sysmacros.h>
#else
# include "pctf/sysmacros.h"
@@ -93,19 +93,26 @@
#if HAVE_SYS_ELF_H
# include <sys/elf.h>
#endif
-#if HAVE_LIBDWARF_H
-# include <libdwarf.h>
-#endif
#if HAVE_LIBGEN_H
# include <libgen.h>
#endif
-#if HAVE_DWARF_H
-# include <dwarf.h>
-#endif
+#include "libdwarf/dwarf.h"
+#include "libdwarf/libdwarf.h"
#if HAVE_STDINT_H
# include <stdint.h>
#endif
#include <assert.h>
+#if HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
+#include <signal.h>
+
+#ifndef NBBY
+# define NBBY 8
+#endif
+#ifndef __unused
+# define __unused
+#endif
#ifdef __cplusplus
extern "C" {