This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
BZ #2450 fix breaks 64-bit builds
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 5 Apr 2006 15:39:58 +0930
- Subject: BZ #2450 fix breaks 64-bit builds
This change
* posix/unistd.h: Match return value of readlink to what POSIX
says these days.
results in build failure on powerpc64-linux.
../posix/bits/unistd.h:95: error: conflicting types for âreadlinkâ
../posix/unistd.h:775: error: previous declaration of âreadlinkâ was here
2006-04-05 Alan Modra <amodra@bigpond.net.au>
* posix/bits/unistd.h (readlink): Update.
Index: posix/bits/unistd.h
===================================================================
RCS file: /cvs/glibc/libc/posix/bits/unistd.h,v
retrieving revision 1.10
diff -u -p -r1.10 unistd.h
--- posix/bits/unistd.h 8 Aug 2005 18:58:33 -0000 1.10
+++ posix/bits/unistd.h 5 Apr 2006 06:07:36 -0000
@@ -89,7 +89,7 @@ extern int __REDIRECT_NTH (__readlink_al
char *__restrict __buf, size_t __len), readlink)
__nonnull ((1, 2)) __wur;
-extern __always_inline __nonnull ((1, 2)) __wur int
+extern __always_inline __nonnull ((1, 2)) __wur ssize_t
__NTH (readlink (__const char *__restrict __path, char *__restrict __buf,
size_t __len))
{
--
Alan Modra
IBM OzLabs - Linux Technology Centre