diff --git a/components/dfs/include/dfs.h b/components/dfs/include/dfs.h index f1ea7fa1a..b402be795 100644 --- a/components/dfs/include/dfs.h +++ b/components/dfs/include/dfs.h @@ -29,7 +29,6 @@ #include #include #include -#include #include #include diff --git a/components/libc/compilers/armlibc/sys/types.h b/components/libc/compilers/armlibc/sys/types.h index 3074bd69d..b01d8283d 100644 --- a/components/libc/compilers/armlibc/sys/types.h +++ b/components/libc/compilers/armlibc/sys/types.h @@ -9,6 +9,4 @@ typedef rt_int32_t key_t; /* Used for interprocess communication. */ typedef rt_int32_t pid_t; /* Used for process IDs and process group IDs. */ typedef signed long ssize_t; /* Used for a count of bytes or an error indication. */ -typedef int mode_t; - #endif diff --git a/components/libc/compilers/dlib/sys/types.h b/components/libc/compilers/dlib/sys/types.h index 3074bd69d..b01d8283d 100644 --- a/components/libc/compilers/dlib/sys/types.h +++ b/components/libc/compilers/dlib/sys/types.h @@ -9,6 +9,4 @@ typedef rt_int32_t key_t; /* Used for interprocess communication. */ typedef rt_int32_t pid_t; /* Used for process IDs and process group IDs. */ typedef signed long ssize_t; /* Used for a count of bytes or an error indication. */ -typedef int mode_t; - #endif diff --git a/include/rtlibc.h b/include/rtlibc.h index 757329a22..a66d67698 100644 --- a/include/rtlibc.h +++ b/include/rtlibc.h @@ -36,6 +36,7 @@ #if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__) typedef signed long off_t; +typedef int mode_t; #endif #if defined(__MINGW32__)