[PATCH] Guard ioscheduler= option with FIO_HAVE_IOSCHED_SWITCH
diff --git a/init.c b/init.c
index 4531254..d02056c 100644
--- a/init.c
+++ b/init.c
@@ -884,9 +884,15 @@
 				continue;
 			}
 			if (!check_strstore(p, "ioscheduler", tmpbuf)) {
+#ifndef FIO_HAVE_IOSCHED_SWITCH
+				fprintf(stderr, "io scheduler switching not available\n");
+				ret = 1;
+				break;
+#else
 				td->ioscheduler = strdup(tmpbuf);
 				fgetpos(f, &off);
 				continue;
+#endif
 			}
 
 			/*