Files
meta-openembedded/meta-oe/recipes-extended/libyang/libyang/libyang-add-stdint-h.patch
Randy MacLeod 0fdc02d0f9 libyang: update from 2.0.7 to 2.0.164
Modify the patch since the removal of pcre2-config is no long needed as
upstream now does:
   75518cf7 cmake FEATURE read pcre2 version from header
and created an upstream PR as per new Upstream-Status.

The flag for building the test code was changed from ENABLE_BUILD_TESTS to
just ENABLE_TESTS in:
   cdffdabb build REFACTOR rename test option to unify with other projects

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-19 08:38:16 -07:00

36 lines
1.0 KiB
Diff

From c7f3e2a8fe530beec6103cb9071ccc41458879aa Mon Sep 17 00:00:00 2001
From: Tony Tascioglu <tony.tascioglu@windriver.com>
Date: Mon, 21 Jun 2021 12:34:22 -0400
Subject: [PATCH] libyang: fix initial build errors
This patch addresses build errors seen when integrating libyang as a
recipe.
There is a missing include statement for stdint.h in utests.h which
causes build problems. stdint.h is required to be imported by cmocka.h
prior to the cmocka file. Adding the stdint allows it to build the
tests correctly
Upstream-Status: Submitted [ https://github.com/CESNET/libyang/pull/1819 ]
Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com>
Signed-off-by: Randy MacLeod <randy.macleod@windriver.com>
---
tests/utests/utests.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/utests/utests.h b/tests/utests/utests.h
index 7e85a66e..8eee26ce 100644
--- a/tests/utests/utests.h
+++ b/tests/utests/utests.h
@@ -22,6 +22,7 @@
#include <stdarg.h>
#include <stddef.h>
#include <stdlib.h>
+#include <stdint.h>
#include <cmocka.h>
--
2.32.0