]> git.proxmox.com Git - mirror_qemu.git/blobdiff - configure
qemu-pr-helper: use new libmultipath API
[mirror_qemu.git] / configure
index 6587e8014b6b5c5ab5a984eaf1fef8f58c991f29..7766e74125ca3ef7785188d3a55404abd5cb9ee3 100755 (executable)
--- a/configure
+++ b/configure
@@ -3312,9 +3312,17 @@ if test "$mpath" != "no" ; then
 #include <mpath_persist.h>
 unsigned mpath_mx_alloc_len = 1024;
 int logsink;
+static struct config *multipath_conf;
+extern struct udev *udev;
+extern struct config *get_multipath_config(void);
+extern void put_multipath_config(struct config *conf);
+struct udev *udev;
+struct config *get_multipath_config(void) { return multipath_conf; }
+void put_multipath_config(struct config *conf) { }
+
 int main(void) {
-    struct udev *udev = udev_new();
-    mpath_lib_init(udev);
+    udev = udev_new();
+    multipath_conf = mpath_lib_init();
     return 0;
 }
 EOF