summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2005-12-05 20:56:10 +0100
committerJens Axboe <axboe@suse.de>2005-12-05 20:56:10 +0100
commit1d169a8710f84509ffeb99c6790725c0cd5ec413 (patch)
tree9d10293ad73e3fd50861068b4e69ee62a28eaa0c
parent4811f429cc8f7db68850579ac14bb1b95e0016ee (diff)
[PATCH] fio: more ioprio compat
-rw-r--r--fio-ini.c2
-rw-r--r--os-freebsd.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/fio-ini.c b/fio-ini.c
index 1b1e464..de82a88 100644
--- a/fio-ini.c
+++ b/fio-ini.c
@@ -289,7 +289,7 @@ int init_random_state(struct thread_data *td)
return 0;
}
-static void fill_cpu_mask(cpu_set_t cpumask, int cpu)
+static void fill_cpu_mask(os_cpu_mask_t cpumask, int cpu)
{
#ifdef FIO_HAVE_CPU_AFFINITY
unsigned int i;
diff --git a/os-freebsd.h b/os-freebsd.h
index 1f32006..e59822b 100644
--- a/os-freebsd.h
+++ b/os-freebsd.h
@@ -9,4 +9,6 @@
#define OS_MAP_ANON (MAP_ANON)
+typedef unsigned long os_cpu_mask_t;
+
#endif