change fio_set_odirect() prototype not to use int fd
[fio.git] / os / os-solaris.h
index 8f8f53b621c7de8fab15fc738e7591d35d3172fa..6af25d2aee69f2306875fd0c59a2af29b3ff512d 100644 (file)
@@ -85,9 +85,9 @@ static inline long os_random_long(os_random_state_t *rs)
 
 #define FIO_OS_DIRECTIO
 extern int directio(int, int);
-static inline int fio_set_odirect(int fd)
+static inline int fio_set_odirect(struct fio_file *f)
 {
-       if (directio(fd, DIRECTIO_ON) < 0)
+       if (directio(f->fd, DIRECTIO_ON) < 0)
                return errno;
 
        return 0;