diff --git a/graphics/piglit/files/patch-tests_egl_spec_egl__chromium__sync__control_egl__chromium__sync__control.c b/graphics/piglit/files/patch-tests_egl_spec_egl__chromium__sync__control_egl__chromium__sync__control.c new file mode 100644 index 000000000000..7a0654be066d --- /dev/null +++ b/graphics/piglit/files/patch-tests_egl_spec_egl__chromium__sync__control_egl__chromium__sync__control.c @@ -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 + #include + #include ++#ifdef __FreeBSD__ ++#include /* For basename(3) */ ++#endif + + #include "piglit-util-egl.h" + #include "piglit-util-gl.h" diff --git a/graphics/piglit/files/patch-tests_spec_ext__external__objects_vk.c b/graphics/piglit/files/patch-tests_spec_ext__external__objects_vk.c new file mode 100644 index 000000000000..66ba84af02b2 --- /dev/null +++ b/graphics/piglit/files/patch-tests_spec_ext__external__objects_vk.c @@ -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 diff --git a/graphics/piglit/files/patch-tests_util_piglit-framework-gl.c b/graphics/piglit/files/patch-tests_util_piglit-framework-gl.c new file mode 100644 index 000000000000..eee43fbb89dd --- /dev/null +++ b/graphics/piglit/files/patch-tests_util_piglit-framework-gl.c @@ -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 + #include + #include ++#ifdef __FreeBSD__ ++#include /* For basename(3) */ ++#endif + + #include "piglit-util-gl.h" + #include "piglit-framework-gl/piglit_gl_framework.h"