diff options
author | rick <rick@andestech.com> | 2016-01-19 13:52:10 +0800 |
---|---|---|
committer | rick <rick@andestech.com> | 2016-01-21 10:41:43 +0800 |
commit | b19cc6bf2160e09607e141fe0fc571701070d1d6 (patch) | |
tree | 4a50690879d6e84708e254ac628ea1f075efd905 /arch/nds32/include/asm/posix_types.h | |
parent | 077678eb0c226e52a1f90edabd3369ab26065b32 (diff) | |
download | u-boot-b19cc6bf2160e09607e141fe0fc571701070d1d6.zip u-boot-b19cc6bf2160e09607e141fe0fc571701070d1d6.tar.gz u-boot-b19cc6bf2160e09607e141fe0fc571701070d1d6.tar.bz2 |
nds32: Fix compile error.
Fix compile error with gcc 4.9.3
Signed-off-by: rick <rick@andestech.com>
Cc: Andes <uboot@andestech.com>
Diffstat (limited to 'arch/nds32/include/asm/posix_types.h')
-rw-r--r-- | arch/nds32/include/asm/posix_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/nds32/include/asm/posix_types.h b/arch/nds32/include/asm/posix_types.h index a928038..e6c591d 100644 --- a/arch/nds32/include/asm/posix_types.h +++ b/arch/nds32/include/asm/posix_types.h @@ -33,7 +33,11 @@ typedef int __kernel_pid_t; typedef unsigned short __kernel_ipc_pid_t; typedef unsigned short __kernel_uid_t; typedef unsigned short __kernel_gid_t; +#ifdef __GNUC__ +typedef __SIZE_TYPE__ __kernel_size_t; +#else typedef unsigned int __kernel_size_t; +#endif typedef int __kernel_ssize_t; typedef int __kernel_ptrdiff_t; typedef long __kernel_time_t; |