From ee95da23c1c8eb6dd19edf6f0474b750638db580 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 26 Jan 2013 13:30:20 +0000 Subject: [PATCH] Show FEATURE_STRPTIME_SANITY_CHECKS on the show-status page --- cgisimple.c | 8 +++++++- templates/show-status | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/cgisimple.c b/cgisimple.c index 07017022..79ec6216 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.118 2012/12/07 12:45:20 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.119 2013/01/25 21:52:02 david__schmidt Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -1650,6 +1650,12 @@ static jb_err show_defines(struct map *exports) if (!err) err = map_conditional(exports, "FEATURE_STATISTICS", 0); #endif /* ndef FEATURE_STATISTICS */ +#ifdef FEATURE_STRPTIME_SANITY_CHECKS + if (!err) err = map_conditional(exports, "FEATURE_STRPTIME_SANITY_CHECKS", 1); +#else /* ifndef FEATURE_STRPTIME_SANITY_CHECKS */ + if (!err) err = map_conditional(exports, "FEATURE_STRPTIME_SANITY_CHECKS", 0); +#endif /* ndef FEATURE_STRPTIME_SANITY_CHECKS */ + #ifdef FEATURE_TOGGLE if (!err) err = map_conditional(exports, "FEATURE_TOGGLE", 1); #else /* ifndef FEATURE_TOGGLE */ diff --git a/templates/show-status b/templates/show-status index ece4d11c..e0ebd397 100644 --- a/templates/show-status +++ b/templates/show-status @@ -315,6 +315,11 @@ @if-FEATURE_STATISTICS-then@ Yes @else-not-FEATURE_STATISTICS@ No @endif-FEATURE_STATISTICS@ Enables the statistics function. + + FEATURE_STRPTIME_SANITY_CHECKS + @if-FEATURE_STRPTIME_SANITY_CHECKS-then@ Yes @else-not-FEATURE_STRPTIME_SANITY_CHECKS@ No @endif-FEATURE_STRPTIME_SANITY_CHECKS@ + Try to work around broken strptime() implementations. + FEATURE_TOGGLE @if-FEATURE_TOGGLE-then@ Yes @else-not-FEATURE_TOGGLE@ No @endif-FEATURE_TOGGLE@ -- 2.39.2