From 70cf597a790b6f667800e43f81b105f674e61a20 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 26 Mar 2003 13:43:29 +0000 Subject: Use execinfo.h to get prototypes for backtrace_symbols (fixes some warnings) (This used to be commit d453b656e56a9b836b76f1cdce8de65d7bc4eb6c) --- source3/configure.in | 2 +- source3/include/includes.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/configure.in b/source3/configure.in index 16f2330e3d..445461e4f7 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -473,7 +473,7 @@ AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h) AC_CHECK_HEADERS(sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h) AC_CHECK_HEADERS(security/pam_modules.h security/_pam_macros.h dlfcn.h) -AC_CHECK_HEADERS(sys/syslog.h syslog.h) +AC_CHECK_HEADERS(sys/syslog.h syslog.h execinfo.h) # In valgrind 1.0.x, it's just valgrind.h. In 1.9.x+ there's a # subdirectory of headers. diff --git a/source3/include/includes.h b/source3/include/includes.h index 2bba9d5084..f536ea88fe 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -345,6 +345,10 @@ #include #endif +#ifdef HAVE_EXECINFO_H +#include +#endif + #ifdef HAVE_SYS_CAPABILITY_H #if defined(BROKEN_REDHAT_7_SYSTEM_HEADERS) && !defined(_I386_STATFS_H) -- cgit