From: Roland McGrath Date: Fri, 11 Nov 2011 18:02:42 +0000 (-0800) Subject: Fix __readlink declaration. X-Git-Tag: glibc-2.15~103^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95b7042bac3e2cfc6fef7aec6acc7d46dd50eba5;p=thirdparty%2Fglibc.git Fix __readlink declaration. --- diff --git a/ChangeLog b/ChangeLog index 60fb50ce545..33c7c9d0330 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-11-11 Roland McGrath + + * include/unistd.h: Fix __readlink return type. + Reported by Chris Metcalf . + 2011-11-11 Ulrich Drepper * stdlib/ucontext.h: Undo last change for makecontext. diff --git a/include/unistd.h b/include/unistd.h index 5014e2e7724..3231943b02e 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -117,7 +117,7 @@ extern int __ttyname_r (int __fd, char *__buf, size_t __buflen); extern int __isatty (int __fd); extern int __link (__const char *__from, __const char *__to); extern int __symlink (__const char *__from, __const char *__to); -extern int __readlink (__const char *__path, char *__buf, size_t __len); +extern ssize_t __readlink (__const char *__path, char *__buf, size_t __len); extern int __unlink (__const char *__name); extern int __gethostname (char *__name, size_t __len); extern int __profil (unsigned short int *__sample_buffer, size_t __size,