[libvirt] [PATCH] build: fix build on platforms without ptsname_r