Skip to content

Commit 3a4ea09

Browse files
committed
[common,tools] Include mman.h if thread stack usage is defined
Signed-off-by: Mykhailo Lohvynenko <Mykhailo_Lohvynenko@epam.com>
1 parent 2d6e4a1 commit 3a4ea09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/aos/common/tools/thread.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "aos/common/tools/queue.hpp"
2020
#include "aos/common/tools/time.hpp"
2121

22-
#if AOS_CONFIG_THREAD_STACK_GUARD_SIZE != 0
22+
#if AOS_CONFIG_THREAD_STACK_GUARD_SIZE != 0 && AOS_CONFIG_THREAD_STACK_USAGE
2323
#include <sys/mman.h>
2424
#endif
2525

0 commit comments

Comments
 (0)