diff options
author | Brent Cook <bcook@openbsd.org> | 2017-08-14 12:15:00 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2017-08-14 12:15:00 -0500 |
commit | 7dc68c82bcb64469b13936b9895212ea42b97550 (patch) | |
tree | d78641c97d541b9d97657c32257b26b5bd4de172 /CMakeLists.txt | |
parent | 4916f940c8fe7453db50de49da6fbc8bd1a0fefd (diff) | |
download | portable-7dc68c82bcb64469b13936b9895212ea42b97550.tar.gz portable-7dc68c82bcb64469b13936b9895212ea42b97550.tar.bz2 portable-7dc68c82bcb64469b13936b9895212ea42b97550.zip |
set SMALL_TIME_T when sizeof time_t == 4
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 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() | |||
306 | check_type_size(time_t SIZEOF_TIME_T) | 306 | check_type_size(time_t SIZEOF_TIME_T) |
307 | if(SIZEOF_TIME_T STREQUAL "4") | 307 | if(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") |
311 | endif() | 312 | endif() |