Use execinfo.h to get prototypes for backtrace_symbols (fixes
authorJelmer Vernooij <jelmer@samba.org>
Wed, 26 Mar 2003 13:43:29 +0000 (13:43 +0000)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 26 Mar 2003 13:43:29 +0000 (13:43 +0000)
some warnings)
(This used to be commit d453b656e56a9b836b76f1cdce8de65d7bc4eb6c)

source3/configure.in
source3/include/includes.h

index 16f2330e3ddfc308b9395ab40b51c7142aa193c5..445461e4f763f2bbace851c8e7068cd92c71dca2 100644 (file)
@@ -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.
index 2bba9d5084c7930fe386cd89a71e9d28ee82c2ea..f536ea88fe527a09986297bcc6ad93aafd7c375c 100644 (file)
 #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)