[libvirt] [PATCH] Add check for kill() to fix build of cgroups on win32

Eric Blake eblake at redhat.com
Mon Feb 28 14:27:20 UTC 2011


On 02/28/2011 07:15 AM, Daniel P. Berrange wrote:
> The kill() function doesn't exist on Win32, so it needs to be
> checked for at build time & code disabled in cgroups
> 
> * configure.ac: Check for kill()
> * src/util/cgroup.c: Stub out virCGroupKill* functions
>   when kill() isn't available
> ---
>  configure.ac      |    2 +-
>  src/util/cgroup.c |   20 ++++++++++++++++++++
>  2 files changed, 21 insertions(+), 1 deletions(-)

Indeed, gnulib doesn't support kill for mingw yet.

> 
> diff --git a/configure.ac b/configure.ac
> index bd509f3..a58ee4e 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -120,7 +120,7 @@ AC_MSG_RESULT([$have_cpuid])
>  dnl Availability of various common functions (non-fatal if missing),
>  dnl and various less common threadsafe functions
>  AC_CHECK_FUNCS_ONCE([cfmakeraw regexec sched_getaffinity getuid getgid \
> - initgroups posix_fallocate mmap \
> + initgroups posix_fallocate mmap kill \
>   getmntent_r getgrnam_r getpwuid_r])

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110228/0b60a7de/attachment-0001.sig>


More information about the libvir-list mailing list