This is an automated email from the ASF dual-hosted git repository.

cederom pushed a commit to branch releases/12.7
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 78937126227f00cd8af595a20e06c6f276ac8520
Author: dulibo1 <[email protected]>
AuthorDate: Mon Dec 4 20:55:03 2023 +0800

    drivertest:add include file depended by cmocka
    
    from the cmocka.h:
     * These headers or their equivalents MUST be included prior to including
     * this header file.
     * @code
     * #include <stdarg.h>
     * #include <stddef.h>
     * #include <stdint.h>
     * #include <setjmp.h>
     * @endcode
    
    Signed-off-by: dulibo1 <[email protected]>
    Signed-off-by: buxiasen <[email protected]>
---
 testing/drivertest/drivertest_pm_runtime.c | 4 +++-
 testing/drivertest/drivertest_regulator.c  | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/testing/drivertest/drivertest_pm_runtime.c 
b/testing/drivertest/drivertest_pm_runtime.c
index 11e6ae66e..9e80a0f42 100644
--- a/testing/drivertest/drivertest_pm_runtime.c
+++ b/testing/drivertest/drivertest_pm_runtime.c
@@ -28,8 +28,10 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdarg.h>
+#include <stddef.h>
+#include <setjmp.h>
 #include <string.h>
-#include <pthread.h>
 #include <cmocka.h>
 #include <nuttx/power/pm_runtime.h>
 
diff --git a/testing/drivertest/drivertest_regulator.c 
b/testing/drivertest/drivertest_regulator.c
index 212c6805a..aa53a693e 100644
--- a/testing/drivertest/drivertest_regulator.c
+++ b/testing/drivertest/drivertest_regulator.c
@@ -28,8 +28,10 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdarg.h>
+#include <stddef.h>
+#include <setjmp.h>
 #include <string.h>
-#include <pthread.h>
 #include <cmocka.h>
 #include <nuttx/power/consumer.h>
 

Reply via email to