[libvirt] [PATCH] cygwin: Check explicitly for getmntent_r
Eric Blake
eblake at redhat.com
Fri Apr 23 18:07:32 UTC 2010
On 04/23/2010 10:57 AM, Matthias Bolte wrote:
> Cygwin has mntent.h but lacks getmntent_r. Update preprocessor
> checks to catch this combination.
Ultimately, cygwin might be taught to implement getmntent_r, so this may
have to be revisited in the future. But that said,
> +++ b/src/qemu/qemu_conf.c
> @@ -114,7 +114,7 @@ int qemudLoadDriverConfig(struct qemud_driver *driver,
> return -1;
> }
>
> -#ifdef HAVE_MNTENT_H
> +#if defined HAVE_MNTENT_H && defined HAVE_GETMNTENT_R
This looks like a reasonable solution to allow compilation on cygwin;
and we can deal with any fallout in later patches.
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/20100423/1cba4345/attachment-0001.sig>
More information about the libvir-list
mailing list