diff options
Diffstat (limited to 'recipes-connectivity/dhcp')
-rw-r--r-- | recipes-connectivity/dhcp/dhcp/dhcp-4.4.2-clang-12.patch | 19 | ||||
-rw-r--r-- | recipes-connectivity/dhcp/dhcp_4.4.2%.bbappend | 7 |
2 files changed, 26 insertions, 0 deletions
diff --git a/recipes-connectivity/dhcp/dhcp/dhcp-4.4.2-clang-12.patch b/recipes-connectivity/dhcp/dhcp/dhcp-4.4.2-clang-12.patch new file mode 100644 index 0000000..4901b91 --- /dev/null +++ b/recipes-connectivity/dhcp/dhcp/dhcp-4.4.2-clang-12.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | # SPDX-FileCopyrightText: Huawei Inc. | ||
2 | # SPDX-License-Identifier: Apache-2.0 | ||
3 | |||
4 | Fix building with modern compilers, such as clang 12 and gcc 11. | ||
5 | |||
6 | Signed-off-by: Bernhard Rosenkraenzer <bernhard.rosenkraenzer.ext@huawei.com> | ||
7 | |||
8 | diff -up dhcp-4.4.2/server/mdb.c.omv~ dhcp-4.4.2/server/mdb.c | ||
9 | --- dhcp-4.4.2/server/mdb.c.omv~ 2021-03-11 18:08:56.890166779 +0100 | ||
10 | +++ dhcp-4.4.2/server/mdb.c 2021-03-11 18:09:01.930189762 +0100 | ||
11 | @@ -67,7 +67,7 @@ static host_id_info_t *host_id_info = NU | ||
12 | |||
13 | int numclasseswritten; | ||
14 | |||
15 | -omapi_object_type_t *dhcp_type_host; | ||
16 | +extern omapi_object_type_t *dhcp_type_host; | ||
17 | |||
18 | isc_result_t enter_class(cd, dynamicp, commit) | ||
19 | struct class *cd; | ||
diff --git a/recipes-connectivity/dhcp/dhcp_4.4.2%.bbappend b/recipes-connectivity/dhcp/dhcp_4.4.2%.bbappend new file mode 100644 index 0000000..f1fffde --- /dev/null +++ b/recipes-connectivity/dhcp/dhcp_4.4.2%.bbappend | |||
@@ -0,0 +1,7 @@ | |||
1 | # SPDX-FileCopyrightText: Huawei Inc. | ||
2 | # SPDX-License-Identifier: Apache-2.0 | ||
3 | |||
4 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
5 | SRC_URI_append = "\ | ||
6 | file://dhcp-4.4.2-clang-12.patch \ | ||
7 | " | ||