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 <eblake@redhat.com>
This commit is contained in:
Eric Blake 2013-07-29 08:55:05 -06:00
parent 7cf81fa175
commit a2d0c3f553

View File

@ -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,