summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-01-16 00:25:29 +0100
committerSlávek Banko <slavek.banko@axis.cz>2021-01-16 00:25:29 +0100
commitbda2d7559f18b2e02050dc433c5ff70cec8e3362 (patch)
treefa3ed1a251571c3192f975ddb849d27c5215f306 /ConfigureChecks.cmake
parent355f00c2bd6f4b2870133d0423420ef8046b7156 (diff)
downloadtork-bda2d7559f18b2e02050dc433c5ff70cec8e3362.tar.gz
tork-bda2d7559f18b2e02050dc433c5ff70cec8e3362.zip
Add sys/time.h and time.h header detection to resolve FTBFS.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index acda08b..b36d0e7 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -35,6 +35,9 @@ find_package( X11 )
check_include_file( stdint.h HAVE_STDINT_H )
check_include_file( inttypes.h HAVE_INTTYPES_H )
+check_include_file( "sys/time.h" HAVE_SYS_TIME_H )
+check_include_files( "sys/time.h;time.h" TIME_WITH_SYS_TIME )
+
##### check for GnuTLS or OpenSSL( default )