ports/graphics/piglit/files/patch-tests_util_piglit-framework-gl.c
Stefan Eßer fcebb835c8 graphics/piglit: fix build
Include libgen.h for the prototype of basename() and correct the
type of a return value (0 instead of (void*)0, which probably has
been accepted with a warning by a previous compiler version, but
is considered an error by clang-15 in -CURRENT).

Reported by:	pkg-fallout
2023-04-07 22:40:07 +02:00

12 lines
337 B
C

--- tests/util/piglit-framework-gl.c.orig 2020-09-09 08:57:32 UTC
+++ tests/util/piglit-framework-gl.c
@@ -27,6 +27,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+#ifdef __FreeBSD__
+#include <libgen.h> /* For basename(3) */
+#endif
#include "piglit-util-gl.h"
#include "piglit-framework-gl/piglit_gl_framework.h"