[PATCH] mingw: Add body for virFork and remove double virDriverLoadModule export

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit 9bd3cce0d2d54e6ab893bb8137218b83d9294714 added virFork and
virDriverLoadModule to libvirt_private.syms, but virFork didn't have
a body on Win32 and virDriverLoadModule was already correctly
exported conditional via libvirt_driver_modules.syms.
---
 src/libvirt_private.syms |    4 ----
 src/util/util.c          |    9 +++++++++
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 1a71e79..670e9f2 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -314,10 +314,6 @@ virDomainConfNWFilterTeardown;
 virDomainConfVMNWFilterTeardown;
 
 
-# driver.h
-virDriverLoadModule;
-
-
 # ebtables.h
 ebtablesAddForwardAllowIn;
 ebtablesAddForwardPolicyReject;
diff --git a/src/util/util.c b/src/util/util.c
index 586baee..fd4d6d4 100644
--- a/src/util/util.c
+++ b/src/util/util.c
@@ -927,6 +927,15 @@ virExecDaemonize(const char *const*argv ATTRIBUTE_UNUSED,
     return -1;
 }
 
+int
+virFork(pid_t *pid)
+{
+    *pid = -1;
+    errno = ENOTSUP;
+    
+    return -1;
+}
+
 # endif /* WIN32 */
 
 int
-- 
1.7.0.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]