diff options
-rw-r--r-- | meta-python/recipes-devtools/python/python-systemd.inc | 2 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python-systemd/endian.patch | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-systemd.inc b/meta-python/recipes-devtools/python/python-systemd.inc index 5be5de092a..f01165cf89 100644 --- a/meta-python/recipes-devtools/python/python-systemd.inc +++ b/meta-python/recipes-devtools/python/python-systemd.inc | |||
@@ -15,4 +15,6 @@ SRC_URI[sha256sum] = "fd0e44bf70eadae45aadc292cb0a7eb5b0b6372cd1b391228047d33895 | |||
15 | # allow for common patches for python- and python3-systemd | 15 | # allow for common patches for python- and python3-systemd |
16 | FILESEXTRAPATHS_prepend := "${THISDIR}/python-systemd:" | 16 | FILESEXTRAPATHS_prepend := "${THISDIR}/python-systemd:" |
17 | 17 | ||
18 | SRC_URI += "file://endian.patch" | ||
19 | |||
18 | SRC_URI_append_libc-musl = " file://0001-Provide-implementation-of-strndupa-for-musl.patch" | 20 | SRC_URI_append_libc-musl = " file://0001-Provide-implementation-of-strndupa-for-musl.patch" |
diff --git a/meta-python/recipes-devtools/python/python-systemd/endian.patch b/meta-python/recipes-devtools/python/python-systemd/endian.patch new file mode 100644 index 0000000000..e09aea7336 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-systemd/endian.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | Include endian.h for missing definitions of htobe16 | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
5 | --- a/systemd/util.c | ||
6 | +++ b/systemd/util.c | ||
7 | @@ -28,6 +28,7 @@ | ||
8 | #include <stdbool.h> | ||
9 | #include <assert.h> | ||
10 | #include <errno.h> | ||
11 | +#include <endian.h> | ||
12 | #include <fcntl.h> | ||
13 | #include <unistd.h> | ||
14 | #include <net/if.h> | ||