mirror of
https://git.freebsd.org/ports.git
synced 2025-07-01 17:40:40 -04:00
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
12 lines
337 B
C
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"
|