Use the FreeBSD variant function to obtain the minor name and the device node. Return the correct path based on where the node is (drm/ versus dri/).
57c50cfc libdrm: drmGetMinorNameForFD: Add FreeBSD variant
xf86drm.c | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Upstream: cgit.freedesktop.org