include libgen.h for basename(3)

prompted by -Wimplicit-function-declaration warnings
This commit is contained in:
jsg 2020-11-16 05:17:33 +00:00
parent 2301128fcf
commit 2bd3477e44
4 changed files with 47 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.12 2020/11/15 12:28:27 kettenis Exp $
# $OpenBSD: Makefile,v 1.13 2020/11/16 05:17:33 jsg Exp $
COMMENT = automated OpenGL and OpenCL testsuite
ONLY_FOR_ARCHS = amd64 i386
DISTNAME = piglit-20190208
REVISION = 5
REVISION = 6
GH_ACCOUNT = mesa3d
GH_PROJECT = piglit

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-tests_egl_spec_egl_chromium_sync_control_egl_chromium_sync_control_c,v 1.1 2020/11/16 05:17:33 jsg Exp $
include libgen.h for basename(3)
Index: tests/egl/spec/egl_chromium_sync_control/egl_chromium_sync_control.c
--- tests/egl/spec/egl_chromium_sync_control/egl_chromium_sync_control.c.orig
+++ tests/egl/spec/egl_chromium_sync_control/egl_chromium_sync_control.c
@@ -35,6 +35,7 @@
#include <stdio.h>
#include <unistd.h>
#include <time.h>
+#include <libgen.h>
#include "piglit-util-egl.h"
#include "piglit-util-gl.h"

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-tests_util_piglit-framework-gl_c,v 1.1 2020/11/16 05:17:33 jsg Exp $
include libgen.h for basename(3)
Index: tests/util/piglit-framework-gl.c
--- tests/util/piglit-framework-gl.c.orig
+++ tests/util/piglit-framework-gl.c
@@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+#include <libgen.h>
#include "piglit-util-gl.h"
#include "piglit-framework-gl/piglit_gl_framework.h"

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-tests_util_piglit-util_c,v 1.1 2020/11/16 05:17:33 jsg Exp $
include libgen.h for basename(3)
Index: tests/util/piglit-util.c
--- tests/util/piglit-util.c.orig
+++ tests/util/piglit-util.c
@@ -41,6 +41,7 @@
#include <errno.h>
#include <inttypes.h>
#include <time.h>
+#include <libgen.h>
#if defined(PIGLIT_HAS_POSIX_CLOCK_MONOTONIC) && defined(PIGLIT_HAS_POSIX_TIMER_NOTIFY_THREAD)
#include <pthread.h>