From 3ae0637148904b5c68cb95e749460e37e3502a9c Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 19 Mar 2010 19:17:15 +0100 Subject: [PATCH] Only define str_sfr_cb() if FIO_HAVE_SYNC_FILE_RANGE is set Signed-off-by: Jens Axboe --- options.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/options.c b/options.c index dda7cba1..40f60ff3 100644 --- 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) { -- 2.25.1