From e945f2da866803c06316894b922aff64768cc39a Mon Sep 17 00:00:00 2001 From: Brennan Ashton Date: Sat, 10 Apr 2021 22:49:34 -0700 Subject: [PATCH] Add define for _POSIX_TIMEOUTS --- include/unistd.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/unistd.h b/include/unistd.h index b5a302afbb..62e505ad3c 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -55,7 +55,12 @@ #undef _POSIX_MAPPED_FILES #undef _POSIX_SHARED_MEMORY_OBJECTS #define _POSIX_PRIORITY_SCHEDULING 1 -#define _POSIX_TIMERS 1 +#ifndef CONFIG_DISABLE_POSIX_TIMERS +# define _POSIX_TIMERS 1 +#endif +#if !defined(CONFIG_DISABLE_MQUEUE) && !defined(CONFIG_DISABLE_PTHREAD) +# define _POSIX_TIMEOUTS 1 +#endif #undef _POSIX_MEMLOCK #undef _POSIX_MEMLOCK_RANGE #undef _POSIX_FSYNC