[libvirt] [PATCH v2] virmdev: fix build on non-Linux