You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2023/02/06 07:45:05 UTC

[mynewt-nimble] branch master updated: porting/nuttx: Fix error: implicit declaration of function 'usleep'

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

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new ed083b36 porting/nuttx: Fix error: implicit declaration of function 'usleep'
ed083b36 is described below

commit ed083b36cb85c7437b905ee905ea4aed6a1653ad
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Feb 6 05:03:29 2023 +0800

    porting/nuttx: Fix error: implicit declaration of function 'usleep'
    
    Report here:
    https://github.com/apache/nuttx/actions/runs/4098214664/jobs/7067171681
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 porting/examples/nuttx/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/porting/examples/nuttx/main.c b/porting/examples/nuttx/main.c
index 82582573..7492e120 100644
--- a/porting/examples/nuttx/main.c
+++ b/porting/examples/nuttx/main.c
@@ -22,9 +22,9 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <stdio.h>
-
-
 #include <pthread.h>
+#include <unistd.h>
+
 #include "nimble/nimble_npl.h"
 #include "nimble/nimble_port.h"