This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 5a668132f examples/optee_gp: Include stdlib.h and string.h.
5a668132f is described below
commit 5a668132f8992cff9ddf0fb605ffd55c7aa99b52
Author: Marco Casaroli <[email protected]>
AuthorDate: Wed Oct 14 07:23:25 2026 +0200
examples/optee_gp: Include stdlib.h and string.h.
optee_gp_main.c calls malloc(), free(), memset() and memcmp(), but got
their declarations only indirectly. nuttx/lib/lib.h is no longer
included by stdio.h, so imx93-evk:optee does not compile. Include the
headers directly.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
---
examples/optee_gp/optee_gp_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/examples/optee_gp/optee_gp_main.c
b/examples/optee_gp/optee_gp_main.c
index b88aba694..3170b9953 100644
--- a/examples/optee_gp/optee_gp_main.c
+++ b/examples/optee_gp/optee_gp_main.c
@@ -26,6 +26,8 @@
#include <nuttx/config.h>
#include <nuttx/tee.h>
+#include <stdlib.h>
+#include <string.h>
#include <tee_client_api.h>
#include <teec_trace.h>
#include <uuid.h>