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

gustavonihei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 0aa4f07e93daa64889833b1ae20dca659985bae7
Author: Abdelatif Guettouche <abdelatif.guettou...@espressif.com>
AuthorDate: Tue Sep 21 13:08:41 2021 +0200

    libc/sched/sched_backtrace.c: Include unistd.h to avoid warning about
    getpid function.
    
    Signed-off-by: Abdelatif Guettouche <abdelatif.guettou...@espressif.com>
---
 libs/libc/sched/sched_backtrace.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libs/libc/sched/sched_backtrace.c 
b/libs/libc/sched/sched_backtrace.c
index bc318cd..5c35bda 100644
--- a/libs/libc/sched/sched_backtrace.c
+++ b/libs/libc/sched/sched_backtrace.c
@@ -25,6 +25,7 @@
 #include <nuttx/config.h>
 
 #include <sys/types.h>
+#include <unistd.h>
 #include <execinfo.h>
 #include <unwind.h>
 

Reply via email to