[darwinbuild] About the readlink redefinition in darwintrace.c
Kevin Van Vechten
kevin at opendarwin.org
Wed Mar 15 10:58:33 PST 2006
On Mar 15, 2006, at 6:03 AM, Axel Luttgens wrote:
> So, my question is: shouldn't line 219 of darwintrace.c read
>
> ssize_t readlink(const char * path, char * buf, ssize_t bufsiz) {
>
> instead of
>
> ssize_t readlink(const char * path, char * buf, size_t bufsiz) {
The real issue is that the declaration of readlink in unistd.h
changed in tiger. The darwintrace.c code is correct for Tiger, but
incorrect for earlier releases.
We'll need to support both versions, conditionalized by one of the
macros in AvailabilityMacros.h.
- Kevin
More information about the darwinbuild-dev
mailing list