CLK_TCK is considered obsolete in GCC, use CLOCKS_PER_SEC instead
authorPeter Howkins <flibble@users.sourceforge.net>
Mon, 12 Mar 2012 16:05:21 +0000 (16:05 +0000)
committerPeter Howkins <flibble@users.sourceforge.net>
Mon, 12 Mar 2012 16:05:21 +0000 (16:05 +0000)
cde/programs/dtappbuilder/src/abmf/abmf.c

index 0cbcde9c0e0fa6619167c4d8cb821151f6f32f71..2cf4877f4a8afbda3e99af2ad3fb558c4822e31c 100644 (file)
 #include "abmfP.h"
 #include "abmf.h"
 
+/* glibc considers CLK_TCK obsolete */
+#if defined(linux)
+#define CLK_TCK CLOCKS_PER_SEC
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif