[libvirt] [PATCH] virnetdevbandwidth: Include virutil.h

Michal Privoznik mprivozn at redhat.com
Thu Nov 6 14:34:25 UTC 2014


One of the latest patches (9a8fc3efc2470) introduced call of
geteuid(). However, not all systems have the function
implemented, e.g. mingw. Therefore, we fail to build on those
system. The fix consist of including virutil.h which defines
geteuid in needed. Sigh.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---

Pushed under build-breaker rule.

 src/util/virnetdevbandwidth.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/virnetdevbandwidth.c b/src/util/virnetdevbandwidth.c
index 9f2a159..fbd2a8d 100644
--- a/src/util/virnetdevbandwidth.c
+++ b/src/util/virnetdevbandwidth.c
@@ -28,6 +28,7 @@
 #include "viralloc.h"
 #include "virerror.h"
 #include "virstring.h"
+#include "virutil.h"
 
 #define VIR_FROM_THIS VIR_FROM_NONE
 
-- 
2.0.4




More information about the libvir-list mailing list