[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Build error with coreutils-8.3
From: |
Chris Clayton |
Subject: |
Re: Build error with coreutils-8.3 |
Date: |
Sun, 10 Jan 2010 14:20:48 +0000 |
2010/1/10 Bruno Haible <address@hidden>:
>
> This patch works too (by doing the right thing when <wchar.h> is being
> included
> from within /usr/include/wctype.h), and seems to be the right thing, therefore
> I'm applying it.
>
This patch allows the build to complete too.
Thanks.
Chris
>
> 2010-01-10 Bruno Haible <address@hidden>
>
> wchar: Fix compilation error when <wchar.h> is used from coreutils.
> * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
> Reported by Brian Gough <address@hidden> and
> Chris Clayton <address@hidden> via
> Mike Frysinger <address@hidden> and Jim Meyering <address@hidden>.
>
> --- lib/wchar.in.h.orig Sun Jan 10 12:49:55 2010
> +++ lib/wchar.in.h Sun Jan 10 12:49:16 2010
> @@ -30,9 +30,9 @@
> address@hidden@
> #endif
>
> -#if defined __need_mbstate_t || (defined __hpux && ((defined
> _INTTYPES_INCLUDED && !defined strtoimax) || defined
> _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) || defined _GL_ALREADY_INCLUDING_WCHAR_H
> +#if defined __need_mbstate_t || defined __need_wint_t || (defined __hpux &&
> ((defined _INTTYPES_INCLUDED && !defined strtoimax) || defined
> _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) || defined _GL_ALREADY_INCLUDING_WCHAR_H
> /* Special invocation convention:
> - - Inside uClibc header files.
> + - Inside glibc and uClibc header files.
> - On HP-UX 11.00 we have a sequence of nested includes
> <wchar.h> -> <stdlib.h> -> <stdint.h>, and the latter includes <wchar.h>,
> once indirectly <stdint.h> -> <sys/types.h> -> <inttypes.h> -> <wchar.h>
>
--
No, Sir; there is nothing which has yet been contrived by man, by which
so much happiness is produced as by a good tavern or inn - Doctor Samuel
Johnson