Not really tested, but it should hopefully work, and at very least it prevents link failures on MSVC due to absence of basename.
540972b util: Implement basename for MSVC.
tests/util/piglit-util.c | 29 +++++++++++++++++++++++++++++
tests/util/piglit-util.h | 2 ++
2 files changed, 31 insertions(+)
Upstream: cgit.freedesktop.org