Fix build/compile for non-blktrace platforms
[fio.git] / os / os.h
diff --git a/os/os.h b/os/os.h
index e630627fddea38f4bfbb4608fe00af1f0f2142ea..660dcc5202dc948e430224bdc33591dda9591dbf 100644 (file)
--- a/os/os.h
+++ b/os/os.h
 #define fio_lookup_raw(dev, majdev, mindev)    1
 #endif
 
+#ifndef FIO_HAVE_BLKTRACE
+static inline int is_blktrace(const char *fname)
+{
+       return 0;
+}
+static inline int load_blktrace(struct thread_data *td, const char *fname)
+{
+       return 1;
+}
+#endif
+
 #endif