[openib-general] [PATCH DAPLTEST] - compile failure on FC5/X86_64

Steve Wise swise at opengridcomputing.com
Tue Aug 29 06:47:44 PDT 2006


Dunno if this is the correct fix for all platforms/distros, but it
worked for me on FC5/X86_64...  CLK_TCK wasn't getting defined for this
distro...

Signed-off-by: Steve Wise <swise at opengridcomputing.com>

---

Index: test/dapltest/mdep/linux/dapl_mdep_user.c
===================================================================
--- test/dapltest/mdep/linux/dapl_mdep_user.c   (revision 9096)
+++ test/dapltest/mdep/linux/dapl_mdep_user.c   (working copy)
@@ -178,7 +178,7 @@
 {
     struct tms      ts;
     clock_t         t = times (&ts);
-    return (unsigned long) ((DAT_UINT64) t * 1000 / CLK_TCK);
+    return (unsigned long) ((DAT_UINT64) t * 1000 / CLOCKS_PER_SEC);
 }

 double






More information about the general mailing list