[PATCH] cleanup sg ioctl vs read approach
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index d1e4e04cee289dcc08dad69cf10b881d506cf2e2..a183d72d09bf8bb14b811338e5f07476f140ed11 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -146,6 +146,7 @@ struct thread_data {
        unsigned int use_thread;
        unsigned int iodepth;
        os_cpu_mask_t cpumask;
+       unsigned int jobnum;
 
        struct drand48_data bsrange_state;
        struct drand48_data verify_state;
@@ -315,4 +316,8 @@ struct io_completion_data {
 
 #define DISK_UTIL_MSEC (250)
 
+#ifndef min
+#define min(a, b)      ((a) < (b) ? (a) : (b))
+#endif
+
 #endif