summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-03-26 13:43:29 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-03-26 13:43:29 +0000
commit70cf597a790b6f667800e43f81b105f674e61a20 (patch)
treec6ce390b84c247c92d012633d61d07d2545bda53
parent5edbbc1808537781790c0641ef7071f98aa81d1c (diff)
downloadsamba-70cf597a790b6f667800e43f81b105f674e61a20.tar.gz
samba-70cf597a790b6f667800e43f81b105f674e61a20.tar.bz2
samba-70cf597a790b6f667800e43f81b105f674e61a20.zip
Use execinfo.h to get prototypes for backtrace_symbols (fixes
some warnings) (This used to be commit d453b656e56a9b836b76f1cdce8de65d7bc4eb6c)
-rw-r--r--source3/configure.in2
-rw-r--r--source3/include/includes.h4
2 files changed, 5 insertions, 1 deletions
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 <poll.h>
#endif
+#ifdef HAVE_EXECINFO_H
+#include <execinfo.h>
+#endif
+
#ifdef HAVE_SYS_CAPABILITY_H
#if defined(BROKEN_REDHAT_7_SYSTEM_HEADERS) && !defined(_I386_STATFS_H)