Guard a dwarf_prototypes.h include with a conditional
authorPetr Machata <pmachata@redhat.com>
Tue, 12 Aug 2014 08:01:09 +0000 (10:01 +0200)
committerChanho Park <chanho61.park@samsung.com>
Fri, 22 Aug 2014 11:38:27 +0000 (20:38 +0900)
- Thanks to Kai Noda for reporting this.

proc.c

diff --git a/proc.c b/proc.c
index 91af49f..bf2a172 100644 (file)
--- a/proc.c
+++ b/proc.c
 #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