Fossil SCM

Add support for backtrace in the ./configure script

drh 2018-07-19 13:24 segvhandler
Commit 3e03913b6f210546b68245c4f76e90c66c85fe77dc72e8c34cd253c6edb416d7
2 files changed +1 +3
+1
--- auto.def
+++ auto.def
@@ -483,10 +483,11 @@
483483
cc-check-function-in-lib ns_name_uncompress resolv
484484
cc-check-functions utime
485485
cc-check-functions usleep
486486
cc-check-functions strchrnul
487487
cc-check-functions pledge
488
+cc-check-functions backtrace
488489
489490
# Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE
490491
if {![cc-check-functions getloadavg]} {
491492
define FOSSIL_OMIT_LOAD_AVERAGE 1
492493
msg-result "Load average support unavailable"
493494
--- auto.def
+++ auto.def
@@ -483,10 +483,11 @@
483 cc-check-function-in-lib ns_name_uncompress resolv
484 cc-check-functions utime
485 cc-check-functions usleep
486 cc-check-functions strchrnul
487 cc-check-functions pledge
 
488
489 # Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE
490 if {![cc-check-functions getloadavg]} {
491 define FOSSIL_OMIT_LOAD_AVERAGE 1
492 msg-result "Load average support unavailable"
493
--- auto.def
+++ auto.def
@@ -483,10 +483,11 @@
483 cc-check-function-in-lib ns_name_uncompress resolv
484 cc-check-functions utime
485 cc-check-functions usleep
486 cc-check-functions strchrnul
487 cc-check-functions pledge
488 cc-check-functions backtrace
489
490 # Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE
491 if {![cc-check-functions getloadavg]} {
492 define FOSSIL_OMIT_LOAD_AVERAGE 1
493 msg-result "Load average support unavailable"
494
+3
--- src/main.c
+++ src/main.c
@@ -48,10 +48,13 @@
4848
#endif
4949
#ifdef FOSSIL_ENABLE_JSON
5050
# include "cson_amalgamation.h" /* JSON API. */
5151
# include "json_detail.h"
5252
#endif
53
+#ifdef HAVE_BACKTRACE
54
+# include <execinfo.h>
55
+#endif
5356
5457
/*
5558
** Maximum number of auxiliary parameters on reports
5659
*/
5760
#define MX_AUX 5
5861
--- src/main.c
+++ src/main.c
@@ -48,10 +48,13 @@
48 #endif
49 #ifdef FOSSIL_ENABLE_JSON
50 # include "cson_amalgamation.h" /* JSON API. */
51 # include "json_detail.h"
52 #endif
 
 
 
53
54 /*
55 ** Maximum number of auxiliary parameters on reports
56 */
57 #define MX_AUX 5
58
--- src/main.c
+++ src/main.c
@@ -48,10 +48,13 @@
48 #endif
49 #ifdef FOSSIL_ENABLE_JSON
50 # include "cson_amalgamation.h" /* JSON API. */
51 # include "json_detail.h"
52 #endif
53 #ifdef HAVE_BACKTRACE
54 # include <execinfo.h>
55 #endif
56
57 /*
58 ** Maximum number of auxiliary parameters on reports
59 */
60 #define MX_AUX 5
61

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button