Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...it/files/patch-tests_egl_spec_egl__chromium__sync__control_egl__chromium__sync__control.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- tests/egl/spec/egl_chromium_sync_control/egl_chromium_sync_control.c.orig 2020-09-09 08:57:32 UTC | ||
+++ tests/egl/spec/egl_chromium_sync_control/egl_chromium_sync_control.c | ||
@@ -35,6 +35,9 @@ | ||
#include <stdio.h> | ||
#include <unistd.h> | ||
#include <time.h> | ||
+#ifdef __FreeBSD__ | ||
+#include <libgen.h> /* For basename(3) */ | ||
+#endif | ||
|
||
#include "piglit-util-egl.h" | ||
#include "piglit-util-gl.h" |
11 changes: 11 additions & 0 deletions
11
graphics/piglit/files/patch-tests_spec_ext__external__objects_vk.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- tests/spec/ext_external_objects/vk.c.orig 2020-09-09 08:57:32 UTC | ||
+++ tests/spec/ext_external_objects/vk.c | ||
@@ -336,7 +336,7 @@ get_aspect_from_depth_format(VkFormat depth_format) | ||
default: | ||
break; | ||
} | ||
- return VK_NULL_HANDLE; | ||
+ return VK_IMAGE_ASPECT_NONE; | ||
} | ||
|
||
static VkPipelineStageFlags |
12 changes: 12 additions & 0 deletions
12
graphics/piglit/files/patch-tests_util_piglit-framework-gl.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- 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" |