HP-UX: has aio_fsync() and fallocate()
[fio.git] / os / os-freebsd.h
index 0cb7ae5e5ca079380e20a514f1f0f1b9df3748c2..7a79dd0f70ca42c5063d7a58741f61fba75a62ed 100644 (file)
@@ -5,9 +5,10 @@
 #include <sys/sysctl.h>
 #include <sys/disk.h>
 
+#include "../file.h"
+
 #define FIO_HAVE_POSIXAIO
 #define FIO_HAVE_ODIRECT
-#define FIO_HAVE_IOPRIO
 #define FIO_HAVE_STRSEP
 #define FIO_USE_GENERIC_RAND
 #define FIO_HAVE_CHARDEV_SIZE
@@ -32,7 +33,7 @@ static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
 
 static inline int chardev_size(struct fio_file *f, unsigned long long *bytes)
 {
-       return blockdev_size(f->fd, bytes);
+       return blockdev_size(f, bytes);
 }
 
 static inline int blockdev_invalidate_cache(struct fio_file *f)