diff options
Diffstat (limited to 'meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/0017-Define-glibc-compatible-basename-for-non-glibc-syste.patch')
-rw-r--r-- | meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/0017-Define-glibc-compatible-basename-for-non-glibc-syste.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/0017-Define-glibc-compatible-basename-for-non-glibc-syste.patch b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/0017-Define-glibc-compatible-basename-for-non-glibc-syste.patch deleted file mode 100644 index 7d74cfcc2..000000000 --- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/0017-Define-glibc-compatible-basename-for-non-glibc-syste.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From fdc7fb940bb41020271b9db41d5608004efdbde5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 27 May 2018 08:36:44 -0700 | ||
4 | Subject: [PATCH] Define glibc compatible basename() for non-glibc systems | ||
5 | |||
6 | Fixes builds with musl, even though systemd is adamant about | ||
7 | using non-posix basename implementation, we have a way out | ||
8 | |||
9 | Upstream-Status: Inappropriate [musl specific] | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | src/machine/machine-dbus.c | 5 +++++ | ||
14 | 1 file changed, 5 insertions(+) | ||
15 | |||
16 | diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c | ||
17 | index 45bc056326..aee51d5da5 100644 | ||
18 | --- a/src/machine/machine-dbus.c | ||
19 | +++ b/src/machine/machine-dbus.c | ||
20 | @@ -4,6 +4,11 @@ | ||
21 | #include <sys/mount.h> | ||
22 | #include <sys/wait.h> | ||
23 | |||
24 | +#if !defined(__GLIBC__) | ||
25 | +#include <string.h> | ||
26 | +#define basename(src) (strrchr(src,'/') ? strrchr(src,'/')+1 : src) | ||
27 | +#endif | ||
28 | + | ||
29 | #include "alloc-util.h" | ||
30 | #include "bus-common-errors.h" | ||
31 | #include "bus-get-properties.h" | ||
32 | -- | ||
33 | 2.39.2 | ||
34 | |||