Commit 985062e231 for qemu.org
commit 985062e2319e6bf4a4be9c216ede6d34379e5777
Author: Chad Jablonski <chad@jablonski.xyz>
Date: Thu Dec 18 20:45:12 2025 -0500
migration: Remove unnecessary zlib include from qemu-file.h
Commit 70eb5fde05 removed zlib from the libmigration dependencies but
missed removing the zlib include from the header file. zlib doesn't
appear to be used anywhere in qemu-file.h. This is fine in most
environments where zlib is nearly always in the default include path but
breaks the build when it isn't (NixOS for example).
Fixes: 70eb5fde05 ("migration: remove unnecessary zlib dependency")
Signed-off-by: Chad Jablonski <chad@jablonski.xyz>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
diff --git a/migration/qemu-file.h b/migration/qemu-file.h
index a8e9bb2ccb..a390554208 100644
--- a/migration/qemu-file.h
+++ b/migration/qemu-file.h
@@ -25,7 +25,6 @@
#ifndef MIGRATION_QEMU_FILE_H
#define MIGRATION_QEMU_FILE_H
-#include <zlib.h>
#include "exec/cpu-common.h"
#include "io/channel.h"