From: Fabian Keil Date: Sun, 8 May 2016 10:44:39 +0000 (+0000) Subject: Add FEATURE_64_BIT_TIME_T X-Git-Tag: v_3_0_25~45 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=1778b854c90c4be4c60ed2f86803728feca6e25d Add FEATURE_64_BIT_TIME_T It's sole purpose is to make it obvious from the show-status page whether or not dates before 1970 and after 2038 are expected to be handled properly. This is mainly useful for Privoxy-Regression-Test but could also come handy when dealing with time-related support requests. --- diff --git a/cgisimple.c b/cgisimple.c index 8000af48..530c5816 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.137 2016/04/04 10:51:45 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.138 2016/04/04 10:55:47 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -1715,6 +1715,14 @@ static jb_err show_defines(struct map *exports) }; static const struct feature features[] = { + { + "FEATURE_64_BIT_TIME_T", +#if (SIZEOF_TIME_T == 8) + 1, +#else + 0, +#endif + }, { "FEATURE_ACCEPT_FILTER", #ifdef FEATURE_ACCEPT_FILTER diff --git a/configure.in b/configure.in index 190eaaf6..f38afa2c 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. dnl -dnl $Id: configure.in,v 1.195 2016/04/09 10:22:26 fabiankeil Exp $ +dnl $Id: configure.in,v 1.196 2016/04/09 10:22:40 fabiankeil Exp $ dnl dnl Written by and Copyright (C) 2001-2016 the dnl Privoxy team. https://www.privoxy.org/ @@ -32,7 +32,7 @@ dnl ================================================================= dnl AutoConf Initialization dnl ================================================================= -AC_REVISION($Revision: 1.195 $) +AC_REVISION($Revision: 1.196 $) AC_INIT(jcc.c) if test ! -f config.h.in; then @@ -715,6 +715,7 @@ AC_CHECK_SIZEOF(char *, 4) AC_CHECK_SIZEOF(long, 4) AC_CHECK_SIZEOF(long long, 8) AC_CHECK_SIZEOF(size_t, 4) +AC_CHECK_SIZEOF(time_t, 8) dnl Checks for header files. AC_CHECK_HEADERS([ \ diff --git a/templates/show-status b/templates/show-status index 78349aee..89a8f830 100644 --- a/templates/show-status +++ b/templates/show-status @@ -223,6 +223,11 @@ #define Enabled? Effects when enabled + + FEATURE_64_BIT_TIME_T + @if-FEATURE_64_BIT_TIME_T-then@ Yes @else-not-FEATURE_64_BIT_TIME_T@ No @endif-FEATURE_64_BIT_TIME_T@ + Dates before 1970 and after 2038 are (hopefully) supported. + FEATURE_ACCEPT_FILTER @if-FEATURE_ACCEPT_FILTER-then@ Yes @else-not-FEATURE_ACCEPT_FILTER@ No @endif-FEATURE_ACCEPT_FILTER@