[PATCH] Don't use _G_va_list in bits/wchar2.h
Jakub Jelinek
jakub@redhat.com
Fri Jul 22 08:51:00 GMT 2005
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
More information about the Libc-hacker
mailing list