From fad87e1f80e0c1486dd992f98eb0ab540ab3d041 Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Tue, 30 Nov 2010 11:39:35 +0000 Subject: [PATCH] fix ssize_t redefinition error when using minilibc git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1160 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/dfs/filesystems/nfs/rpc/types.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/dfs/filesystems/nfs/rpc/types.h b/components/dfs/filesystems/nfs/rpc/types.h index d16f8bca9f..36624ea279 100644 --- a/components/dfs/filesystems/nfs/rpc/types.h +++ b/components/dfs/filesystems/nfs/rpc/types.h @@ -62,10 +62,13 @@ typedef int bool_t; typedef int enum_t; #ifndef RT_USING_NEWLIB -typedef rt_int32_t ssize_t; typedef unsigned long dev_t; #endif +#if !defined(RT_USING_NEWLIB) && !defined(RT_USING_MINILIBC) +typedef rt_int32_t ssize_t; +#endif + /* This needs to be changed to uint32_t in the future */ typedef unsigned long rpcprog_t; typedef unsigned long rpcvers_t; -- GitLab