From c402284b4c91472b5b57a64aaa30bf130cf09fe1 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Wed, 29 Dec 2004 01:57:28 +0000 Subject: Initial cut at making this buildable on 4.x. It still needs work, but maybe someone else will take it farther. --- benchmarks/raidtest/files/raidtest.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'benchmarks/raidtest/files/raidtest.c') diff --git a/benchmarks/raidtest/files/raidtest.c b/benchmarks/raidtest/files/raidtest.c index 2c877f9a45ec..42bb200e884c 100644 --- a/benchmarks/raidtest/files/raidtest.c +++ b/benchmarks/raidtest/files/raidtest.c @@ -27,6 +27,7 @@ #include __FBSDID("$FreeBSD$"); +#include #include #include #include @@ -43,6 +44,12 @@ __FBSDID("$FreeBSD$"); #include #include +#if __FreeBSD_version < 500028 +#warning FreeBSD 4.x +typedef u_quad_t uintmax_t; +typedef quad_t intmax_t; +#define strtoumax strtouq +#endif #define DEFAULT_DATA_FILE "raidtest.data" #define MAX_IO_LENGTH 131072 -- cgit v1.2.3