[PATCH] build: fix build error of src/libvirt.c

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

 



Following build error caused by commit 7c9a2d88:

libvirt.c: In function 'virConnectGetConfigFilePath':
libvirt.c:956:9: error: implicit declaration of function 'virGetUserConfigDirectory' [-Werror=implicit-function-declaration]
libvirt.c:956:9: error: nested extern declaration of 'virGetUserConfigDirectory' [-Werror=nested-externs]
libvirt.c:956:25: error: initialization makes pointer from integer without a cast [-Werror]
libvirt.c: In function 'virConnectGetConfigFile':
libvirt.c:987:5: error: implicit declaration of function 'virFileExists' [-Werror=implicit-function-declaration]
libvirt.c:987:5: error: nested extern declaration of 'virFileExists' [-Werror=nested-externs]
libvirt.c: In function 'virDomainSave':
libvirt.c:2623:9: error: implicit declaration of function 'virFileAbsPath' [-Werror=implicit-function-declaration]
libvirt.c:2623:9: error: nested extern declaration of 'virFileAbsPath' [-Werror=nested-externs]

Signed-off-by: Hu Tao <hutao@xxxxxxxxxxxxxx>
---
 src/libvirt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libvirt.c b/src/libvirt.c
index 15b37a3..467f6dd 100644
--- a/src/libvirt.c
+++ b/src/libvirt.c
@@ -63,6 +63,7 @@
 #include "viruri.h"
 #include "virthread.h"
 #include "virstring.h"
+#include "virutil.h"
 
 #ifdef WITH_TEST
 # include "test/test_driver.h"
-- 
1.8.1.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]