This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi! _G_va_list is only defined in <_G_config.h>, which is included by libio.h or stdio.h, but not wchar.h. So including just wchar.h and not stdio.h with -D_FORTIFY_SOURCE=2 is fatal without this patch. 2005-07-22 Jakub Jelinek <jakub@redhat.com> * wcsmbs/bits/wchar2.h (__vfwprintf_chk, __vwprintf_chk): Use __gnuc_va_list rather than _G_va_list. --- libc/wcsmbs/bits/wchar2.h.jj 2005-07-22 10:48:04.000000000 +0200 +++ libc/wcsmbs/bits/wchar2.h 2005-07-22 10:49:09.000000000 +0200 @@ -236,9 +236,9 @@ extern int __wprintf_chk (int __flag, __ ...); extern int __vfwprintf_chk (FILE *__restrict __stream, int __flag, __const wchar_t *__restrict __format, - _G_va_list __ap); + __gnuc_va_list __ap); extern int __vwprintf_chk (int __flag, __const wchar_t *__restrict __format, - _G_va_list __ap); + __gnuc_va_list __ap); # define wprintf(...) \ __wprintf_chk (__USE_FORTIFY_LEVEL - 1, __VA_ARGS__) Jakub
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |