mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
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:
parent
7cf81fa175
commit
a2d0c3f553
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user