You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gu...@apache.org on 2021/09/21 12:22:38 UTC

[incubator-nuttx] 02/02: libc/sched/sched_backtrace.c: Include unistd.h to avoid warning about getpid function.

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 <ab...@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 <ab...@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>