NetBSD/vax does not implement fmax(3), substitute with existing MAX() macro.

This commit is contained in:
jakllsch 2011-01-08 02:36:52 +00:00
parent 7639b8f6d0
commit 208ac54ed2

View File

@ -1,4 +1,4 @@
/* $NetBSD: iostat.c,v 1.54 2011/01/07 03:12:27 jakllsch Exp $ */
/* $NetBSD: iostat.c,v 1.55 2011/01/08 02:36:52 jakllsch Exp $ */
/*
* Copyright (c) 1996 John M. Vinopal
@ -71,7 +71,7 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1991, 1993\
#if 0
static char sccsid[] = "@(#)iostat.c 8.3 (Berkeley) 4/28/95";
#else
__RCSID("$NetBSD: iostat.c,v 1.54 2011/01/07 03:12:27 jakllsch Exp $");
__RCSID("$NetBSD: iostat.c,v 1.55 2011/01/08 02:36:52 jakllsch Exp $");
#endif
#endif /* not lint */
@ -344,7 +344,7 @@ drive_stats(double etime)
mbps = 0;
mbps /= etime;
(void)printf(" %5.*f ",
MAX(0,3-(int)floor(log10(fabs(fmax(1.0,mbps))))), mbps);
MAX(0,3-(int)floor(log10(fabs(MAX(1.0,mbps))))), mbps);
}
}