summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2014-08-12 10:01:09 +0200
committerChanho Park <chanho61.park@samsung.com>2014-08-22 20:38:27 +0900
commit8251496f4b0efb1e84508e3c2f251281dd67be54 (patch)
tree7470a7cd7d4c18128d617e1f597c5fc562089f7c
parente5ad2101831656c7e2a5ba539a1df8a1453f2089 (diff)
downloadltrace-8251496f4b0efb1e84508e3c2f251281dd67be54.tar.gz
ltrace-8251496f4b0efb1e84508e3c2f251281dd67be54.tar.bz2
ltrace-8251496f4b0efb1e84508e3c2f251281dd67be54.zip
Guard a dwarf_prototypes.h include with a conditional
- Thanks to Kai Noda for reporting this.
-rw-r--r--proc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 91af49f..bf2a172 100644
--- a/proc.c
+++ b/proc.c
@@ -36,7 +36,10 @@
#include "options.h"
#include "proc.h"
#include "value_dict.h"
-#include "dwarf_prototypes.h"
+
+#if defined(HAVE_LIBDW)
+# include "dwarf_prototypes.h"
+#endif /* defined(HAVE_LIBDW) */
#ifndef OS_HAVE_PROCESS_DATA
int