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