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 <[EMAIL PROTECTED]>
---
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
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general