From 98abb9e8ee924fb0b19cf8bfc40752f97ed8afb3 Mon Sep 17 00:00:00 2001
From: Slávek Banko <slavek.banko@axis.cz>
Date: Mon, 11 Feb 2019 18:55:47 +0100
Subject: Port TIME_WITH_SYS_TIME to CMake. This resolves FTBFS from commit
 05dc8500dd.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
---
 ConfigureChecks.cmake | 1 +
 config.h.cmake        | 1 +
 2 files changed, 2 insertions(+)

diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 8969b6789..1e38dd672 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -70,6 +70,7 @@ endif( )
 # sys/time.h (tdeioslave/sftp, ksmserver, ksplashml)
 if( BUILD_KSMSERVER OR BUILD_KSPLASHML OR BUILD_TDEIOSLAVES)
   check_include_file( sys/time.h HAVE_SYS_TIME_H )
+  check_include_files( "sys/time.h;time.h" TIME_WITH_SYS_TIME )
 endif( )
 
 
diff --git a/config.h.cmake b/config.h.cmake
index 96c81a785..d2c2a8bfb 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -52,6 +52,7 @@
 
 // tdeioslave/sftp, ksmserver, ksplashml
 #cmakedefine HAVE_SYS_TIME_H 1
+#cmakedefine TIME_WITH_SYS_TIME 1
 
 // drkonqi
 #cmakedefine HAVE_STDINT_H 1
-- 
cgit v1.2.3

