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.git


The following commit(s) were added to refs/heads/master by this push:
     new 7a4bd09e48 execinfo.h: include nuttx/sched.h instead sched.h
7a4bd09e48 is described below

commit 7a4bd09e4848c9ed6a56da21c547b40cead764e7
Author: wangbowen6 <wangbow...@xiaomi.com>
AuthorDate: Wed Feb 22 21:09:59 2023 +0800

    execinfo.h: include nuttx/sched.h instead sched.h
    
    beacause _SCHED_GETTID is in nuttx/sched.h, when use dump_stack()
    compile error log:
    unqlite.c:51256: undefined reference to `_SCHED_GETTID'
    
    Signed-off-by: wangbowen6 <wangbow...@xiaomi.com>
---
 include/execinfo.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/execinfo.h b/include/execinfo.h
index 5c8dbfe8f1..2eb3778013 100644
--- a/include/execinfo.h
+++ b/include/execinfo.h
@@ -25,8 +25,9 @@
  * Included Files
  ****************************************************************************/
 
+#include <nuttx/sched.h>
+
 #include <sys/types.h>
-#include <sched.h>
 
 /****************************************************************************
  * Pre-processor Definitions

Reply via email to