Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 1 | From c7f3e2a8fe530beec6103cb9071ccc41458879aa Mon Sep 17 00:00:00 2001 |
| 2 | From: Tony Tascioglu <tony.tascioglu@windriver.com> |
| 3 | Date: Mon, 21 Jun 2021 12:34:22 -0400 |
| 4 | Subject: [PATCH] libyang: fix initial build errors |
| 5 | |
| 6 | This patch addresses build errors seen when integrating libyang as a |
| 7 | recipe. |
| 8 | |
| 9 | There is a missing include statement for stdint.h in utests.h which |
| 10 | causes build problems. stdint.h is required to be imported by cmocka.h |
| 11 | prior to the cmocka file. Adding the stdint allows it to build the |
| 12 | tests correctly |
| 13 | |
| 14 | Upstream-Status: Submitted [ https://github.com/CESNET/libyang/pull/1819 ] |
| 15 | |
| 16 | Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com> |
| 17 | Signed-off-by: Randy MacLeod <randy.macleod@windriver.com> |
| 18 | --- |
| 19 | tests/utests/utests.h | 1 + |
| 20 | 1 file changed, 1 insertion(+) |
| 21 | |
| 22 | diff --git a/tests/utests/utests.h b/tests/utests/utests.h |
| 23 | index 7e85a66e..8eee26ce 100644 |
| 24 | --- a/tests/utests/utests.h |
| 25 | +++ b/tests/utests/utests.h |
| 26 | @@ -22,6 +22,7 @@ |
| 27 | #include <stdarg.h> |
| 28 | #include <stddef.h> |
| 29 | #include <stdlib.h> |
| 30 | +#include <stdint.h> |
| 31 | |
| 32 | #include <cmocka.h> |
| 33 | |
| 34 | -- |
| 35 | 2.32.0 |