Browse Source

Port HAVE_SYS_TIME_H to CMake

It is used, but not checked with CMake.

Signed-off-by: OBATA Akio <obache@wizdas.com>
pull/28/head
OBATA Akio 3 months ago
parent
commit
05dc8500dd
2 changed files with 9 additions and 0 deletions
  1. 6
    0
      ConfigureChecks.cmake
  2. 3
    0
      config.h.cmake

+ 6
- 0
ConfigureChecks.cmake View File

@@ -67,6 +67,12 @@ if( BUILD_DRKONQI OR BUILD_TDEIOSLAVES )
67 67
 endif( )
68 68
 
69 69
 
70
+# sys/time.h (tdeioslave/sftp, ksmserver, ksplashml)
71
+if( BUILD_KSMSERVER OR BUILD_KSPLASHML OR BUILD_TDEIOSLAVES)
72
+  check_include_file( sys/time.h HAVE_SYS_TIME_H )
73
+endif( )
74
+
75
+
70 76
 # pam
71 77
 if( WITH_PAM AND (BUILD_KCHECKPASS OR BUILD_TDM) )
72 78
   check_library_exists( pam pam_start "" HAVE_PAM )

+ 3
- 0
config.h.cmake View File

@@ -50,6 +50,9 @@
50 50
 // tdm, tdeioslave
51 51
 #cmakedefine HAVE_TERMIOS_H 1
52 52
 
53
+// tdeioslave/sftp, ksmserver, ksplashml
54
+#cmakedefine HAVE_SYS_TIME_H 1
55
+
53 56
 // drkonqi
54 57
 #cmakedefine HAVE_STDINT_H 1
55 58
 #cmakedefine HAVE_SYS_BITYPES_H

Loading…
Cancel
Save