aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-04-08 17:53:27 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-04-18 11:17:27 +0200
commit857f504cf279a063e375c32e88d5cf3312d6b30c (patch)
tree70f66c3b884dc10d720ab872369a611cb003e50b /net
parent2c888febdfa0290a9e1d1f2133b2a24de47f6120 (diff)
colo: move stubs out of stubs/
Since the colo stubs are needed exactly when the build options are not enabled, move them together with the code they stub. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-ID: <20240408155330.522792-16-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'net')
-rw-r--r--net/colo-stubs.c7
-rw-r--r--net/meson.build2
2 files changed, 9 insertions, 0 deletions
diff --git a/net/colo-stubs.c b/net/colo-stubs.c
new file mode 100644
index 0000000000..ec726665be
--- /dev/null
+++ b/net/colo-stubs.c
@@ -0,0 +1,7 @@
+#include "qemu/osdep.h"
+#include "qemu/notify.h"
+#include "net/colo-compare.h"
+
+void colo_compare_cleanup(void)
+{
+}
diff --git a/net/meson.build b/net/meson.build
index 9432a588e4..e0cd71470e 100644
--- a/net/meson.build
+++ b/net/meson.build
@@ -20,6 +20,8 @@ if get_option('replication').allowed() or \
get_option('colo_proxy').allowed()
system_ss.add(files('colo-compare.c'))
system_ss.add(files('colo.c'))
+else
+ system_ss.add(files('colo-stubs.c'))
endif
if get_option('colo_proxy').allowed()