Merge branch 'histogram-client-server' of https://github.com/cronburg/fio
[fio.git] / init.c
diff --git a/init.c b/init.c
index 0221ab2f18e7fe2b82e4555869c9aa7f87680b85..4b4a86a6fe2421459a7f8bf1feaf15c58215baf3 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1426,6 +1426,12 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num,
        }
 
        if (o->hist_log_file) {
+#ifndef CONFIG_ZLIB
+               if (td->client_type) {
+                       log_err("fio: --write_hist_log requires zlib in client/server mode\n");
+                       goto err;
+               }
+#endif
                struct log_params p = {
                        .td = td,
                        .avg_msec = o->log_avg_msec,