mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
build: fix build on cygwin
On cygwin: CC libvirt_util_la-cgroup.lo util/cgroup.c: In function 'virCgroupKillRecursiveInternal': util/cgroup.c:1458: warning: implicit declaration of function 'virCgroupNew' [-Wimplicit-function-declaration] * src/util/cgroup.c (virCgroupKill): Don't build on platforms where virCgroupNew is unsupported.
This commit is contained in:
parent
7e07a40113
commit
b1a5aefcee
@ -1308,7 +1308,7 @@ int virCgroupGetFreezerState(virCgroupPtr group, char **state)
|
||||
}
|
||||
|
||||
|
||||
#ifdef HAVE_KILL
|
||||
#if defined HAVE_KILL && defined HAVE_MNTENT_H && defined HAVE_GETMNTENT_R
|
||||
static int virCgroupKillInternal(virCgroupPtr group, int signum, virHashTablePtr pids)
|
||||
{
|
||||
int rc;
|
||||
@ -1523,7 +1523,7 @@ int virCgroupKillPainfully(virCgroupPtr group)
|
||||
return rc;
|
||||
}
|
||||
|
||||
#else /* HAVE_KILL */
|
||||
#else /* !(HAVE_KILL, HAVE_MNTENT_H, HAVE_GETMNTENT_R) */
|
||||
int virCgroupKill(virCgroupPtr group ATTRIBUTE_UNUSED,
|
||||
int signum ATTRIBUTE_UNUSED)
|
||||
{
|
||||
@ -1539,4 +1539,4 @@ int virCgroupKillPainfully(virCgroupPtr group ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
#endif /* HAVE_KILL */
|
||||
#endif /* HAVE_KILL, HAVE_MNTENT_H, HAVE_GETMNTENT_R */
|
||||
|
Loading…
Reference in New Issue
Block a user