diff options
author | obrien <obrien@FreeBSD.org> | 2004-12-29 09:57:28 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2004-12-29 09:57:28 +0800 |
commit | b6bcaab492ba08a56ff8423f24f754755b51c256 (patch) | |
tree | 7465a9c03d393c5e68d116b16c17647afaf2ac7b | |
parent | b83481a17be7de1d5675914082696395c3a1d94c (diff) | |
download | freebsd-ports-gnome-b6bcaab492ba08a56ff8423f24f754755b51c256.tar.gz freebsd-ports-gnome-b6bcaab492ba08a56ff8423f24f754755b51c256.tar.zst freebsd-ports-gnome-b6bcaab492ba08a56ff8423f24f754755b51c256.zip |
Initial cut at making this buildable on 4.x.
It still needs work, but maybe someone else will take it farther.
-rw-r--r-- | benchmarks/raidtest/files/raidtest.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <sys/param.h> #include <sys/types.h> #include <stdio.h> #include <stdlib.h> @@ -43,6 +44,12 @@ __FBSDID("$FreeBSD$"); #include <sys/time.h> #include <sys/wait.h> +#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 |