[PATCH] Compile and works on OpenSolaris (tested on BeleniX)
diff --git a/os-freebsd.h b/os-freebsd.h
index 41672d4..6a4c11b 100644
--- a/os-freebsd.h
+++ b/os-freebsd.h
@@ -9,6 +9,7 @@
 #undef FIO_HAVE_CPU_AFFINITY
 #undef FIO_HAVE_DISK_UTIL
 #undef FIO_HAVE_SGIO
+#define FIO_HAVE_ODIRECT
 
 #define OS_MAP_ANON		(MAP_ANON)