1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.7/160-build_wcs_upper_buffer.patch Wed Dec 07 16:15:50 2011 +0800
1.3 @@ -0,0 +1,22 @@
1.4 +Matthias Kaehlcke <matthias at kaehlcke dot net> writes:
1.5 +
1.6 +A compilation of an ARM toolchain with glibc 2.7 using crosstool-ng
1.7 +failed with a gcc error in glibc-2.7/posix/regex_internal.c, more
1.8 +concretly in the function build_wcs_upper_buffer(). The return type of
1.9 +the function prototype in regex_internal.h doesn't correspond with the
1.10 +return type of this function in regex_internal.c.
1.11 +
1.12 +The attached patch corrects the return type of the function prototype
1.13 +in regex_internal.h
1.14 +
1.15 +--- glibc-2.7/posix/regex_internal.h.org 2008-05-30 11:16:01.000000000 +0200
1.16 ++++ glibc-2.7/posix/regex_internal.h 2008-05-30 11:16:35.000000000 +0200
1.17 +@@ -391,7 +391,7 @@
1.18 + internal_function;
1.19 + # ifdef RE_ENABLE_I18N
1.20 + static void build_wcs_buffer (re_string_t *pstr) internal_function;
1.21 +-static int build_wcs_upper_buffer (re_string_t *pstr) internal_function;
1.22 ++static reg_errcode_t build_wcs_upper_buffer (re_string_t *pstr) internal_function;
1.23 + # endif /* RE_ENABLE_I18N */
1.24 + static void build_upper_buffer (re_string_t *pstr) internal_function;
1.25 + static void re_string_translate_buffer (re_string_t *pstr) internal_function;