aboutsummaryrefslogtreecommitdiff
path: root/include/libmissing.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2017-06-21 10:27:47 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2017-06-28 10:27:19 +0200
commit022ce62b9f6706749feed3939335e46bb0146978 (patch)
treef26c6bc8e936810aa5b47f0420a9868b94d4867b /include/libmissing.h
parent1a3e3af3216348559320ec1039480278b2f3a582 (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/libmissing.h')
-rw-r--r--include/libmissing.h6
1 files changed, 4 insertions, 2 deletions
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 <execinfo.h>
#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);