[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
readlink.c compiling failed because of size_t
- Date: Thu, 26 Apr 2007 00:31:31 +0800
- From: xr at trasin.net (ray)
- Subject: readlink.c compiling failed because of size_t
compiling failed in /cpukit/libcsupport/src/readlink.c
type mismatch for:
int readlink(
const char *pathname,
char *buf,
int bufsize
)
This function declare in include/sys/unistd.h
ssize_t _EXFUN(readlink, (const char *__path, char *__buf, size_t __buflen));
it seems the size_t had changed in the new tool chain. and I change readlink in /cpukit/libcsupport/src/readlink.c to
ssize_t readlink(
const char *pathname,
char *buf,
size_t bufsize
)
Then everything is fine.
I am using:
gcc-4.2 with patch gcc-core-4.2-20070221-rtems4.8-20070228.diff
newlib-1.15.0 with patch newlib-1.15.0-rtems4.8-20070413.diff
Target is arm-rtems4.8
What might cause this?
--------------
Thanks & Best Regards!
ray
2007-04-26