Fossil SCM
Add support for backtrace in the ./configure script
Commit
3e03913b6f210546b68245c4f76e90c66c85fe77dc72e8c34cd253c6edb416d7
Parent
c4dcb00dcc5f4a5…
2 files changed
+1
+3
M
auto.def
+1
| --- auto.def | ||
| +++ auto.def | ||
| @@ -483,10 +483,11 @@ | ||
| 483 | 483 | cc-check-function-in-lib ns_name_uncompress resolv |
| 484 | 484 | cc-check-functions utime |
| 485 | 485 | cc-check-functions usleep |
| 486 | 486 | cc-check-functions strchrnul |
| 487 | 487 | cc-check-functions pledge |
| 488 | +cc-check-functions backtrace | |
| 488 | 489 | |
| 489 | 490 | # Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE |
| 490 | 491 | if {![cc-check-functions getloadavg]} { |
| 491 | 492 | define FOSSIL_OMIT_LOAD_AVERAGE 1 |
| 492 | 493 | msg-result "Load average support unavailable" |
| 493 | 494 |
| --- 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 @@ | ||
| 48 | 48 | #endif |
| 49 | 49 | #ifdef FOSSIL_ENABLE_JSON |
| 50 | 50 | # include "cson_amalgamation.h" /* JSON API. */ |
| 51 | 51 | # include "json_detail.h" |
| 52 | 52 | #endif |
| 53 | +#ifdef HAVE_BACKTRACE | |
| 54 | +# include <execinfo.h> | |
| 55 | +#endif | |
| 53 | 56 | |
| 54 | 57 | /* |
| 55 | 58 | ** Maximum number of auxiliary parameters on reports |
| 56 | 59 | */ |
| 57 | 60 | #define MX_AUX 5 |
| 58 | 61 |
| --- 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 |