This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix compilation with Altivec


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]