diff options
| author | Khem Raj <raj.khem@gmail.com> | 2023-02-12 21:26:18 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-02-12 21:48:33 -0800 |
| commit | 892aac07aaf9c57dfd4e777bc870324b6e117670 (patch) | |
| tree | 225d9efcd5557c283e7af1599efb3792271b8316 | |
| parent | f8097599b5b9c15311c5ad4bd03358c1c3259c8d (diff) | |
| download | meta-openembedded-892aac07aaf9c57dfd4e777bc870324b6e117670.tar.gz | |
python3-grpcio: Add missing include for close/open APIs
This is found with clang16 stricter warnings
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-grpcio/0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch | 27 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-grpcio/0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch b/meta-python/recipes-devtools/python/python3-grpcio/0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch new file mode 100644 index 0000000000..918c6c8601 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-grpcio/0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | From 4432b9a296c9c287dfe281b4d464dfd03e4eb721 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 12 Feb 2023 21:25:04 -0800 | ||
| 4 | Subject: [PATCH] zlib: Include unistd.h for open/close C APIs | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 9 | --- | ||
| 10 | third_party/zlib/gzguts.h | 1 + | ||
| 11 | 1 file changed, 1 insertion(+) | ||
| 12 | |||
| 13 | diff --git a/third_party/zlib/gzguts.h b/third_party/zlib/gzguts.h | ||
| 14 | index 57faf37..3c700c2 100644 | ||
| 15 | --- a/third_party/zlib/gzguts.h | ||
| 16 | +++ b/third_party/zlib/gzguts.h | ||
| 17 | @@ -19,6 +19,7 @@ | ||
| 18 | #endif | ||
| 19 | |||
| 20 | #include <stdio.h> | ||
| 21 | +#include <unistd.h> | ||
| 22 | #include "zlib.h" | ||
| 23 | #ifdef STDC | ||
| 24 | # include <string.h> | ||
| 25 | -- | ||
| 26 | 2.39.1 | ||
| 27 | |||
diff --git a/meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb b/meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb index 3d45c56b0a..7a9b7d8018 100644 --- a/meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb +++ b/meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb | |||
| @@ -12,6 +12,7 @@ SRC_URI:append:class-target = " file://ppc-boringssl-support.patch \ | |||
| 12 | file://mips_bigendian.patch \ | 12 | file://mips_bigendian.patch \ |
| 13 | file://0001-Include-missing-cstdint-header.patch \ | 13 | file://0001-Include-missing-cstdint-header.patch \ |
| 14 | file://abseil-ppc-fixes.patch;patchdir=third_party/abseil-cpp \ | 14 | file://abseil-ppc-fixes.patch;patchdir=third_party/abseil-cpp \ |
| 15 | file://0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch \ | ||
| 15 | " | 16 | " |
| 16 | SRC_URI[sha256sum] = "e6dfc2b6567b1c261739b43d9c59d201c1b89e017afd9e684d85aa7a186c9f7a" | 17 | SRC_URI[sha256sum] = "e6dfc2b6567b1c261739b43d9c59d201c1b89e017afd9e684d85aa7a186c9f7a" |
| 17 | 18 | ||
