Only define str_sfr_cb() if FIO_HAVE_SYNC_FILE_RANGE is set
authorJens Axboe <jens.axboe@oracle.com>
Fri, 19 Mar 2010 18:17:15 +0000 (19:17 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 19 Mar 2010 18:17:15 +0000 (19:17 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
options.c

index dda7cba1bdf16b17f6ea009b722ce8ed79ecc38c..40f60ff354c808ccacb65f88a4b525bfe1735c8b 100644 (file)
--- a/options.c
+++ b/options.c
@@ -429,6 +429,7 @@ static int str_fst_cb(void *data, const char *str)
        return 0;
 }
 
+#ifdef FIO_HAVE_SYNC_FILE_RANGE
 static int str_sfr_cb(void *data, const char *str)
 {
        struct thread_data *td = data;
@@ -442,6 +443,7 @@ static int str_sfr_cb(void *data, const char *str)
 
        return 0;
 }
+#endif
 
 static int check_dir(struct thread_data *td, char *fname)
 {