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 <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
8dc69e09da
commit
e8f570ff9a
1 changed files with 2 additions and 5 deletions
|
@ -11,10 +11,9 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PTHREAD_IPC
|
||||
#ifdef CONFIG_POSIX_API
|
||||
#include <kernel.h>
|
||||
|
||||
#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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue