From 022ce62b9f6706749feed3939335e46bb0146978 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 21 Jun 2017 10:27:47 +0200 Subject: Use autoconf header detection correctly for libmissing AC_CHECK_HEADERS already makes sure our config header contains a HAVE_$FOO_H macro if a header was found. There is no need to awkwardly set our own Automake conditionals and check for it all over the place in the Automake files. Signed-off-by: David Oberhollenzer --- include/libmissing.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/libmissing.h') diff --git a/include/libmissing.h b/include/libmissing.h index c765f6d..0196033 100644 --- a/include/libmissing.h +++ b/include/libmissing.h @@ -1,11 +1,13 @@ #ifndef LIBMISSING_H #define LIBMISSING_H -#ifdef HAVE_EXECINFO +#include "config.h" + +#ifdef HAVE_EXECINFO_H #include #endif -#ifndef HAVE_EXECINFO +#ifndef HAVE_EXECINFO_H int backtrace(void **buffer, int size); char **backtrace_symbols(void *const *buffer, int size); void backtrace_symbols_fd(void *const *buffer, int size, int fd); -- cgit v1.2.3