aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--configure.ac1
2 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4462a79..b897a53 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -306,6 +306,7 @@ endif()
306check_type_size(time_t SIZEOF_TIME_T) 306check_type_size(time_t SIZEOF_TIME_T)
307if(SIZEOF_TIME_T STREQUAL "4") 307if(SIZEOF_TIME_T STREQUAL "4")
308 set(SMALL_TIME_T true) 308 set(SMALL_TIME_T true)
309 add_definitions(-DSMALL_TIME_T)
309 message(WARNING " ** Warning, this system is unable to represent times past 2038\n" 310 message(WARNING " ** Warning, this system is unable to represent times past 2038\n"
310 " ** It will behave incorrectly when handling valid RFC5280 dates") 311 " ** It will behave incorrectly when handling valid RFC5280 dates")
311endif() 312endif()
diff --git a/configure.ac b/configure.ac
index 6f98b3e..384a2b6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -134,6 +134,7 @@ AC_CONFIG_FILES([
134 134
135AM_CONDITIONAL([SMALL_TIME_T], [test "$ac_cv_sizeof_time_t" = "4"]) 135AM_CONDITIONAL([SMALL_TIME_T], [test "$ac_cv_sizeof_time_t" = "4"])
136if test "$ac_cv_sizeof_time_t" = "4"; then 136if test "$ac_cv_sizeof_time_t" = "4"; then
137 AC_DEFINE([SMALL_TIME_T])
137 echo " ** Warning, this system is unable to represent times past 2038" 138 echo " ** Warning, this system is unable to represent times past 2038"
138 echo " ** It will behave incorrectly when handling valid RFC5280 dates" 139 echo " ** It will behave incorrectly when handling valid RFC5280 dates"
139 140