diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-11-12 12:11:41 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-11-13 07:15:16 -0800 |
commit | cd0aff0e6018d49c08f081f22befc68de167ddbc (patch) | |
tree | 82ec1276dd017e06ca9c52e45f8bec4377039a4b /meta-python/recipes-devtools/python/python-systemd | |
parent | 90f924460eddff4e4f48eae653a6166bcaa67721 (diff) | |
download | meta-openembedded-cd0aff0e6018d49c08f081f22befc68de167ddbc.tar.gz |
python-systemd: Include endian.h for htobe16
Fixes
| systemd/util.c:112:39: error: implicit declaration of function 'htobe16' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
| addr->in6.sin6_port = htobe16(port);
| ^
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-systemd')
-rw-r--r-- | meta-python/recipes-devtools/python/python-systemd/endian.patch | 14 |
1 files changed, 14 insertions, 0 deletions
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 000000000..e09aea733 --- /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> | ||