This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix compilation with Altivec
- From: Ryan Arnold <ryan dot arnold at gmail dot com>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: libc-alpha at sourceware dot org, Petr Baudis <pasky at suse dot cz>
- Date: Thu, 14 Jan 2010 10:03:44 -0600
- Subject: Re: Fix compilation with Altivec
- References: <20091106110359.GG3708@machine.or.cz>
On Fri, Nov 6, 2009 at 5:03 AM, Petr Baudis <pasky@suse.cz> wrote:
> (This is essentially the same as Andreas Schwab's similar change in Oct
> 2004. glibc-2.11 fails to build with -mcpu=cell, where __vector is
> gcc-reserved keyword.)
>
> 2009-11-06 ÂPetr Baudis <pasky@suse.cz>
>
> Â Â Â Â* include/sys/uio.h: Change __vector to __iovec to avoid clash
> Â Â Â Âwith altivec.
>
> diff --git a/include/sys/uio.h b/include/sys/uio.h
> index 8c2b016..bfaec59 100644
> --- a/include/sys/uio.h
> +++ b/include/sys/uio.h
> @@ -2,12 +2,12 @@
> Â#include <misc/sys/uio.h>
>
> Â/* Now define the internal interfaces. Â*/
> -extern ssize_t __readv (int __fd, __const struct iovec *__vector,
> +extern ssize_t __readv (int __fd, __const struct iovec *__iovec,
> Â Â Â Â Â Â Â Â Â Â Â Âint __count);
> -extern ssize_t __libc_readv (int __fd, __const struct iovec *__vector,
> +extern ssize_t __libc_readv (int __fd, __const struct iovec *__iovec,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â int __count);
> -extern ssize_t __writev (int __fd, __const struct iovec *__vector,
> +extern ssize_t __writev (int __fd, __const struct iovec *__iovec,
> Â Â Â Â Â Â Â Â Â Â Â Â int __count);
> -extern ssize_t __libc_writev (int __fd, __const struct iovec *__vector,
> +extern ssize_t __libc_writev (int __fd, __const struct iovec *__iovec,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Âint __count);
> Â#endif
>
>
Ulrich, would you please commit this patch?
Ryan S. Arnold
IBM Linux Technology Center