[libvirt PATCH 2/5] Include poll.h instead of sys/poll.h

Daniel P. Berrangé berrange at redhat.com
Mon Mar 7 13:43:37 UTC 2022


On Mon, Mar 07, 2022 at 10:04:03AM +0100, Martin Kletzander wrote:
> That is the proper POSIX way.

Indeed, but if someone wants to do more cleanup we should just
stop using poll, and call g_poll instead. This is a transparent
wrapper of poll on systems which have it, or a compatible impl
on systems lacking it. With g_poll we don't need to care about
poll.h at all.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|


More information about the libvir-list mailing list