From 6683699c7021e632a8c617338a3fceb69f40cc9c Mon Sep 17 00:00:00 2001 From: guoshichao Date: Wed, 13 Sep 2023 19:16:55 +0800 Subject: [PATCH] unistd: add _POSIX_SEMAPHORES definition add _POSIX_SEMAPHORES definition can make the ltp testcase: ltp_functional_semaphores_sem_conpro, ltp_functional_semaphores_sem_philosopher, ltp_functional_semaphores_sem_lock, ltp_stress_semaphores_multi_con_pro, ltp_functional_semaphores_sem_readerwriter, ltp_functional_semaphores_sem_sleepingbarber passed Signed-off-by: guoshichao --- include/unistd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/unistd.h b/include/unistd.h index 4b2b89f6ec..4d0f739a70 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -66,6 +66,7 @@ #define _POSIX_THREAD_CPUTIME _POSIX_VERSION #define _POSIX_REALTIME_SIGNALS _POSIX_VERSION #define _POSIX_THREAD_PRIORITY_SCHEDULING _POSIX_VERSION +#define _POSIX_SEMAPHORES _POSIX_VERSION #ifdef CONFIG_FS_AIO # define _POSIX_ASYNCHRONOUS_IO _POSIX_VERSION