From 88ab928c44779d200dde344b795d9ad7d759f2f7 Mon Sep 17 00:00:00 2001 From: Taras Zaporozhets Date: Sat, 16 Dec 2023 12:12:53 +0100 Subject: [PATCH] Add missing include with EINVAL definition Fixes open-amp compilation with Vitis 2023.2 due to undeclared EINVAL. Signed-off-by: Taras Zaporozhets --- lib/service/rpmsg/rpc/rpmsg_rpc_client.c | 1 + lib/service/rpmsg/rpc/rpmsg_rpc_server.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/service/rpmsg/rpc/rpmsg_rpc_client.c b/lib/service/rpmsg/rpc/rpmsg_rpc_client.c index cb72f2e2c..f4e04c073 100644 --- a/lib/service/rpmsg/rpc/rpmsg_rpc_client.c +++ b/lib/service/rpmsg/rpc/rpmsg_rpc_client.c @@ -5,6 +5,7 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include #include static int rpmsg_endpoint_client_cb(struct rpmsg_endpoint *, void *, size_t, diff --git a/lib/service/rpmsg/rpc/rpmsg_rpc_server.c b/lib/service/rpmsg/rpc/rpmsg_rpc_server.c index 33a51c10d..716d4a1c5 100644 --- a/lib/service/rpmsg/rpc/rpmsg_rpc_server.c +++ b/lib/service/rpmsg/rpc/rpmsg_rpc_server.c @@ -5,6 +5,7 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include #include #define LPERROR(format, ...) metal_log(METAL_LOG_ERROR, format, ##__VA_ARGS__)