This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit d0e949cb2486f73c8b1ff68d017bffcd14eefb46 Author: hongfengchen <[email protected]> AuthorDate: Tue Jun 3 12:07:41 2025 +0800 testing: add unistd.h and pthread.h headers Add unistd.h and pthread.h for memorystress_main.c, unistd.h for dhm.c and cachetest_main.c, and pthread.h for kv_test_019.c to fix missing declarations. Signed-off-by: hongfengchen <[email protected]> --- examples/mdnsd/mdnsd_daemon.c | 1 - testing/drivers/crypto/dhm.c | 1 + testing/mm/cachetest/cachetest_main.c | 1 + testing/mm/memstress/memorystress_main.c | 2 ++ 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/mdnsd/mdnsd_daemon.c b/examples/mdnsd/mdnsd_daemon.c index bfa7759e8..bc2ea4563 100644 --- a/examples/mdnsd/mdnsd_daemon.c +++ b/examples/mdnsd/mdnsd_daemon.c @@ -25,7 +25,6 @@ ****************************************************************************/ #include <nuttx/config.h> - #include <stdint.h> #include <stdlib.h> diff --git a/testing/drivers/crypto/dhm.c b/testing/drivers/crypto/dhm.c index f1eafa2d7..9595e4cb4 100644 --- a/testing/drivers/crypto/dhm.c +++ b/testing/drivers/crypto/dhm.c @@ -27,6 +27,7 @@ #include <fcntl.h> #include <stddef.h> #include <stdio.h> +#include <unistd.h> #include <sys/ioctl.h> #include <crypto/cryptodev.h> diff --git a/testing/mm/cachetest/cachetest_main.c b/testing/mm/cachetest/cachetest_main.c index 3906b58e6..2916932c8 100644 --- a/testing/mm/cachetest/cachetest_main.c +++ b/testing/mm/cachetest/cachetest_main.c @@ -27,6 +27,7 @@ #include <nuttx/config.h> #include <nuttx/cache.h> #include <stdio.h> +#include <unistd.h> #include <syslog.h> /**************************************************************************** diff --git a/testing/mm/memstress/memorystress_main.c b/testing/mm/memstress/memorystress_main.c index 6d9b2d98d..ab1ff8630 100644 --- a/testing/mm/memstress/memorystress_main.c +++ b/testing/mm/memstress/memorystress_main.c @@ -28,6 +28,8 @@ #include <stdlib.h> #include <debug.h> #include <stdio.h> +#include <unistd.h> +#include <pthread.h> #include <stddef.h> #include <string.h> #include <stdint.h>
