diff options
| author | bernard <[email protected]> | 2017-10-25 07:25:24 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-10-25 07:25:24 +0800 |
| commit | 0d45288f066d1ef4e5d94fb2d38d5864d3145c48 (patch) | |
| tree | 073458afaf479404d358f0dc3fd744e08bcb627e | |
| parent | 1181c5b308e8aa253459469e8276d48dce76285d (diff) | |
[libc] Add mode_t in rtlibc.h for Keil MDK/IAR.
| -rw-r--r-- | components/dfs/include/dfs.h | 1 | ||||
| -rw-r--r-- | components/libc/compilers/armlibc/sys/types.h | 2 | ||||
| -rw-r--r-- | components/libc/compilers/dlib/sys/types.h | 2 | ||||
| -rw-r--r-- | include/rtlibc.h | 1 |
4 files changed, 1 insertions, 5 deletions
diff --git a/components/dfs/include/dfs.h b/components/dfs/include/dfs.h index f1ea7fa1a4..b402be7950 100644 --- a/components/dfs/include/dfs.h +++ b/components/dfs/include/dfs.h @@ -29,7 +29,6 @@ #include <stdint.h> #include <stdlib.h> #include <string.h> -#include <sys/types.h> #include <time.h> #include <rtthread.h> diff --git a/components/libc/compilers/armlibc/sys/types.h b/components/libc/compilers/armlibc/sys/types.h index 3074bd69d0..b01d8283d4 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 3074bd69d0..b01d8283d4 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 757329a22c..a66d676982 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__) |
