Merge branch 'minor_fixes' of https://github.com/sitsofe/fio
[fio.git] / os / os-freebsd.h
index 9d1af3b4c49f5a15ab0cb2250130b5ea3ffd091a..e6da286ea264f92fa2ed4e08d283c3bf0e4350c5 100644 (file)
@@ -6,6 +6,7 @@
 #include <errno.h>
 #include <sys/sysctl.h>
 #include <sys/disk.h>
+#include <sys/endian.h>
 #include <sys/thr.h>
 #include <sys/socket.h>
 #include <sys/param.h>
@@ -82,7 +83,7 @@ static inline int chardev_size(struct fio_file *f, unsigned long long *bytes)
 
 static inline int blockdev_invalidate_cache(struct fio_file *f)
 {
-       return EINVAL;
+       return ENOTSUP;
 }
 
 static inline unsigned long long os_phys_mem(void)