From a2d0c3f553f4bcf9f83a888187109399a600692a Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 29 Jul 2013 08:55:05 -0600 Subject: [PATCH] build: fix vircgroup build on mingw The previous patch was incomplete. CC libvirt_util_la-vircgroup.lo ../../src/util/vircgroup.c:70:12: error: 'virCgroupPartitionEscape' declared 'static' but never defined [-Werror=unused-function] static int virCgroupPartitionEscape(char **path); ^ * src/util/vircgroup.c (virCgroupPartitionEscape): Move forward declaration inside conditional. Signed-off-by: Eric Blake --- src/util/vircgroup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c index 62b1b1e0b6..f9007e3d56 100644 --- a/src/util/vircgroup.c +++ b/src/util/vircgroup.c @@ -67,8 +67,6 @@ typedef enum { */ } virCgroupFlags; -static int virCgroupPartitionEscape(char **path); - bool virCgroupAvailable(void) { bool ret = false; @@ -96,6 +94,9 @@ bool virCgroupAvailable(void) } #if defined HAVE_MNTENT_H && defined HAVE_GETMNTENT_R + +static int virCgroupPartitionEscape(char **path); + static bool virCgroupValidateMachineGroup(virCgroupPtr group, const char *name,