Browse Source

Port TIME_WITH_SYS_TIME to CMake.

This resolves FTBFS from commit 05dc8500dd.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Slávek Banko 1 month ago
parent
commit
98abb9e8ee
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      ConfigureChecks.cmake
  2. 1
    0
      config.h.cmake

+ 1
- 0
ConfigureChecks.cmake View File

@@ -70,6 +70,7 @@ endif( )
70 70
 # sys/time.h (tdeioslave/sftp, ksmserver, ksplashml)
71 71
 if( BUILD_KSMSERVER OR BUILD_KSPLASHML OR BUILD_TDEIOSLAVES)
72 72
   check_include_file( sys/time.h HAVE_SYS_TIME_H )
73
+  check_include_files( "sys/time.h;time.h" TIME_WITH_SYS_TIME )
73 74
 endif( )
74 75
 
75 76
 

+ 1
- 0
config.h.cmake View File

@@ -52,6 +52,7 @@
52 52
 
53 53
 // tdeioslave/sftp, ksmserver, ksplashml
54 54
 #cmakedefine HAVE_SYS_TIME_H 1
55
+#cmakedefine TIME_WITH_SYS_TIME 1
55 56
 
56 57
 // drkonqi
57 58
 #cmakedefine HAVE_STDINT_H 1

Loading…
Cancel
Save