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 --- lib/execinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/execinfo.c b/lib/execinfo.c index a39df83..a59f6a9 100644 --- a/lib/execinfo.c +++ b/lib/execinfo.c @@ -1,6 +1,6 @@ #include "libmissing.h" -#ifndef HAVE_EXECINFO +#ifndef HAVE_EXECINFO_H #define PROGRAM_NAME "libmissing" #include "common.h" @@ -22,4 +22,4 @@ void backtrace_symbols_fd(void *const *buffer, int size, int fd) { errmsg("backtrace_symbols_fd() is not implemented"); } -#endif /* !HAVE_EXECINFO */ +#endif /* !HAVE_EXECINFO_H */ -- cgit v1.2.3