1 From e050830898ea37d30ef1c5339cb1665bdb92dcdc Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Thu, 14 Dec 2023 09:13:54 -0800
4 Subject: [PATCH] libweston,tools: Include libgen.h for basename signature
6 Latest musl has removed the declaration from string.h [1] as it only
7 implements POSIX version alone and string.h in glibc implements GNU
8 version of basename. This now results in compile errors on musl.
10 This might be a warning with older compilers but it is error with
11 Clang-17+ as it treats -Wimplicit-function-declaration as error
13 [1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7
15 Upstream-Status: Submitted [https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1420]
16 Signed-off-by: Khem Raj <raj.khem@gmail.com>
18 libweston/backend-drm/libbacklight.c | 1 +
19 tools/zunitc/src/zunitc_impl.c | 1 +
20 2 files changed, 2 insertions(+)
22 diff --git a/libweston/backend-drm/libbacklight.c b/libweston/backend-drm/libbacklight.c
23 index ca7f2d6..74690fa 100644
24 --- a/libweston/backend-drm/libbacklight.c
25 +++ b/libweston/backend-drm/libbacklight.c
34 diff --git a/tools/zunitc/src/zunitc_impl.c b/tools/zunitc/src/zunitc_impl.c
35 index 18f0301..9b460fa 100644
36 --- a/tools/zunitc/src/zunitc_impl.c
37 +++ b/tools/zunitc/src/zunitc_impl.c