[libvirt] [PATCH] remote: disable unused function on win32 platform build

Daniel P. Berrangé posted 1 patch 6 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20180424183132.29165-1-berrange@redhat.com
Test syntax-check passed
src/remote/remote_driver.c | 2 ++
1 file changed, 2 insertions(+)
[libvirt] [PATCH] remote: disable unused function on win32 platform build
Posted by Daniel P. Berrangé 6 years ago
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---

Pushed as trivial build fix

 src/remote/remote_driver.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 3973b37d5f..95437b4365 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -712,6 +712,7 @@ remoteConnectSupportsFeatureUnlocked(virConnectPtr conn,
     }
 
 
+#ifndef WIN32
 static char *remoteGetUNIXSocketNonRoot(void)
 {
     char *sockname = NULL;
@@ -729,6 +730,7 @@ static char *remoteGetUNIXSocketNonRoot(void)
     VIR_DEBUG("Chosen UNIX sockname %s", sockname);
     return sockname;
 }
+#endif /* WIN32 */
 
 static char *remoteGetUNIXSocketRoot(unsigned int flags)
 {
-- 
2.14.3

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