We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d6e4a1 commit 3a4ea09Copy full SHA for 3a4ea09
include/aos/common/tools/thread.hpp
@@ -19,7 +19,7 @@
19
#include "aos/common/tools/queue.hpp"
20
#include "aos/common/tools/time.hpp"
21
22
-#if AOS_CONFIG_THREAD_STACK_GUARD_SIZE != 0
+#if AOS_CONFIG_THREAD_STACK_GUARD_SIZE != 0 && AOS_CONFIG_THREAD_STACK_USAGE
23
#include <sys/mman.h>
24
#endif
25
0 commit comments