libdrm: drmGetMinorNameFromFd: Fix FreeBSD variant
authorEmmanuel Vadot <manu@FreeBSD.org>
Tue, 28 Apr 2020 13:26:13 +0000 (15:26 +0200)
committerEmmanuel Vadot <manu@FreeBSD.org>
Mon, 4 May 2020 19:19:58 +0000 (21:19 +0200)
commitf52e2b20edda32e06f506bc455fcc44ed9266a36
tree4ff2adacc5bcdc0aa6c37031614792f67a6ef8e2
parent5ec177b398d6d305f273329c8228ea870e180d6d
libdrm: drmGetMinorNameFromFd: Fix FreeBSD variant

Fix the FreeBSD variant by getting the node type represented by fd to deduce
the target minor name.
We then return the full /dev/dri/<minorname><id> version.

Fix: #41
Fixes: 6818a50b12
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Emmanuel Vadot <manu@FreeBSD.org>
xf86drm.c