]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
virnetdevbandwidth: Include virutil.h
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 6 Nov 2014 14:30:13 +0000 (15:30 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 6 Nov 2014 14:30:13 +0000 (15:30 +0100)
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@redhat.com>
src/util/virnetdevbandwidth.c

index 9f2a159a2a0ec9d8bb16ef3e7a3a46c6f37810af..fbd2a8ddc3be844a2663e098f525e9efb80807f0 100644 (file)
@@ -28,6 +28,7 @@
 #include "viralloc.h"
 #include "virerror.h"
 #include "virstring.h"
+#include "virutil.h"
 
 #define VIR_FROM_THIS VIR_FROM_NONE