diff --git a/include/posix/mqueue.h b/include/posix/mqueue.h index 53210b5f95d..3bb9a0e6640 100644 --- a/include/posix/mqueue.h +++ b/include/posix/mqueue.h @@ -17,7 +17,6 @@ extern "C" { #endif typedef void *mqd_t; -typedef unsigned int mode_t; typedef struct mq_attr { long mq_flags; diff --git a/include/posix/unistd.h b/include/posix/unistd.h index e68b46c212c..7dc39e9f6fd 100644 --- a/include/posix/unistd.h +++ b/include/posix/unistd.h @@ -16,11 +16,6 @@ extern "C" { #ifdef CONFIG_POSIX_API #include -#ifndef _MODE_T_DECLARED -typedef unsigned int mode_t; -#define _MODE_T_DECLARED -#endif - /* File related operations */ extern int open(const char *name, int flags); extern int close(int file); diff --git a/lib/libc/minimal/include/sys/types.h b/lib/libc/minimal/include/sys/types.h index 55a62116e21..007c077d8de 100644 --- a/lib/libc/minimal/include/sys/types.h +++ b/lib/libc/minimal/include/sys/types.h @@ -8,6 +8,8 @@ #ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS_TYPES_H_ #define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS_TYPES_H_ +typedef unsigned int mode_t; + #if !defined(__ssize_t_defined) #define __ssize_t_defined