summaryrefslogtreecommitdiffstats
path: root/test/iopipe.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-06-02 14:31:04 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-06-02 14:31:04 (GMT)
commitbefd08fb80e0f4bfe138e6c9cee448e49cccf500 (patch)
treead02e75f0cc92c0aec13581345c600848a57635d /test/iopipe.c
parentae69e30f76aff9cee3a948d38505fdb33d63a242 (diff)
downloadhdf5-befd08fb80e0f4bfe138e6c9cee448e49cccf500.zip
hdf5-befd08fb80e0f4bfe138e6c9cee448e49cccf500.tar.gz
hdf5-befd08fb80e0f4bfe138e6c9cee448e49cccf500.tar.bz2
[svn-r2320] Patched "print_stats" routine parameters for machines with no getrusage() call.
(Like the Crays)
Diffstat (limited to 'test/iopipe.c')
-rw-r--r--test/iopipe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/iopipe.c b/test/iopipe.c
index 5f62918..7b78df1 100644
--- a/test/iopipe.c
+++ b/test/iopipe.c
@@ -79,11 +79,19 @@
*
*-------------------------------------------------------------------------
*/
+#ifdef HAVE_GETRUSAGE
static void
print_stats (const char *prefix,
struct rusage *r_start, struct rusage *r_stop,
struct timeval *t_start, struct timeval *t_stop,
size_t nbytes)
+#else /* HAVE_GETRUSAGE */
+static void
+print_stats (const char *prefix,
+ struct timeval *r_start, struct timeval *r_stop,
+ struct timeval *t_start, struct timeval *t_stop,
+ size_t nbytes)
+#endif /* HAVE_GETRUSAGE */
{
double e_time, bw;
#ifdef HAVE_GETRUSAGE