summaryrefslogtreecommitdiffstats
path: root/arch/nds32/include/asm/posix_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nds32/include/asm/posix_types.h')
-rw-r--r--arch/nds32/include/asm/posix_types.h4
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 a92803878e..e6c591dfe4 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;
OpenPOWER on IntegriCloud