From e8f570ff9ae398bf1906233bcc3a806575e8dbfb Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 28 Sep 2018 08:33:31 +0300 Subject: [PATCH] include: posix: stat: Don't depend on CONFIG_PTHREAD_IPC Not related to pthreads. Don't depends on CONFIG_POSIX_FS either, as stats defines may apply to special files (devices, etc.) too. Instead, depend on CONFIG_POSIX_API. Signed-off-by: Paul Sokolovsky --- include/posix/sys/stat.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/posix/sys/stat.h b/include/posix/sys/stat.h index fd4369c8857..7b4b2eadab8 100644 --- a/include/posix/sys/stat.h +++ b/include/posix/sys/stat.h @@ -11,10 +11,9 @@ extern "C" { #endif -#ifdef CONFIG_PTHREAD_IPC +#ifdef CONFIG_POSIX_API #include -#ifdef CONFIG_POSIX_FS #define S_IRWXU 00700 #define S_IRUSR 00400 #define S_IWUSR 00200 @@ -46,9 +45,7 @@ struct stat { unsigned long st_blocks; }; -#endif /* CONFIG_POSIX_FS */ - -#endif /* CONFIG_PTHREAD_IPC */ +#endif /* CONFIG_POSIX_API */ #ifdef __cplusplus }