@samitouri / QOSamiQemu / commits / 985062e231

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>

Chad Jablonski committed Dec 18, 2025 at 20:45 UTC 985062e2319e6bf4a4be9c216ede6d34379e5777
1 file changed -1
migration/qemu-file.h
-1
@@ -25,7 +25,6 @@
25 #ifndef MIGRATION_QEMU_FILE_H
26 #define MIGRATION_QEMU_FILE_H
27
28 -#include <zlib.h>
28 #include "exec/cpu-common.h"
29 #include "io/channel.h"
30