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

commit 4096e1f9ee7045dea8bbe2f7c3ac8fe10418ccfb
Author: dongjiuzhu1 <[email protected]>
AuthorDate: Tue Jan 13 12:09:33 2026 +0800

    testing/mm/iob: fix compile warning
    
    iob_main.c included <iob.h>, which only the Makefile can find, through
    -I$(TOPDIR)/mm/iob, and it calls the pthread API without including
    <pthread.h>.  Include <nuttx/mm/iob.h> and <pthread.h> instead.
    
    Assisted-by: Kiro:claude-opus-5-5
    Signed-off-by: dongjiuzhu1 <[email protected]>
---
 testing/mm/iob/iob_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testing/mm/iob/iob_main.c b/testing/mm/iob/iob_main.c
index 1cba7d22b..59bd61ab0 100644
--- a/testing/mm/iob/iob_main.c
+++ b/testing/mm/iob/iob_main.c
@@ -27,13 +27,14 @@
 #include <nuttx/config.h>
 #include <nuttx/sched.h>
 
+#include <pthread.h>
 #include <setjmp.h>
 #include <stdarg.h>
 #include <stddef.h>
 #include <stdint.h>
 #include <stdio.h>
 
-#include <iob.h>
+#include <nuttx/mm/iob.h>
 
 /****************************************************************************
  * Pre-processor Definitions

Reply via email to