]> granicus.if.org Git - check/commitdiff
cmake: add check for clockid_t
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 25 Dec 2013 03:04:33 +0000 (03:04 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 25 Dec 2013 03:04:33 +0000 (03:04 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@950 64e312b2-a51f-0410-8e61-82d0ca0eb02a

CMakeLists.txt

index 7a4e19341576f23b47f55e3a651a21649ecd22b6..7166996219a246104c97ee4cb53e417f87d2ff34 100644 (file)
@@ -260,6 +260,11 @@ if(NOT HAVE_CLOCK_T)
   set(clock_t int)
 endif(NOT HAVE_CLOCK_T)
 #
+check_type_size(clockid_t CLOCKID_T)
+if(NOT HAVE_CLOCKID_T)
+  set(clockid_t int)
+endif(NOT HAVE_CLOCKID_T)
+#
 check_type_size(dev_t DEV_T)
 if(NOT HAVE_DEV_T)
   if(MSVC)