From: Michal Privoznik Date: Thu, 6 Nov 2014 14:30:13 +0000 (+0100) Subject: virnetdevbandwidth: Include virutil.h X-Git-Tag: CVE-2014-8135~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cef5ff76e2328e696d56d66c096769150f067a9c;p=thirdparty%2Flibvirt.git virnetdevbandwidth: Include virutil.h 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 --- diff --git a/src/util/virnetdevbandwidth.c b/src/util/virnetdevbandwidth.c index 9f2a159a2a..fbd2a8ddc3 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