From 64c468c6c7e38c9764ca5b0244436ce9c6bda5ed Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Thu, 10 Sep 2020 08:56:11 +0200 Subject: [PATCH] util: Include libgen.h for FreeBSD to have basename prototype Signed-off-by: Emmanuel Vadot --- tests/util/piglit-util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c index bf2c9f93e..569e08ab1 100644 --- a/tests/util/piglit-util.c +++ b/tests/util/piglit-util.c @@ -123,6 +123,10 @@ int asprintf(char **strp, const char *fmt, ...) #endif /* HAVE_ASPRINTF */ +#ifdef __FreeBSD__ +#include /* For basename(3) */ +#endif + /** * \brief Split \a string into an array of strings. * -- GitLab