summaryrefslogtreecommitdiff
path: root/patches/glibc/2.7/190-glibc-2.7-build_wcs_upper_buffer.patch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-06-24 16:46:24 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-06-24 16:46:24 (GMT)
commit7ec11b4c82137ae4a72335c0b6fb826f29186cde (patch)
treec07e85110466f4ff248bfed99c3d46baa28d7476 /patches/glibc/2.7/190-glibc-2.7-build_wcs_upper_buffer.patch
parent367f7458b2c10dfcad6406b9d41fbb44f0904fd1 (diff)
Add a new patch to make glibc build with latest (4.3.x) gcc.
See: http://sourceware.org/ml/libc-help/2008-06/msg00063.html /trunk/patches/glibc/2.7/210-gcc-4.3_sysinclude_path.patch | 50 50 0 0 ++++++++++++++++++++ 1 file changed, 50 insertions(+)
Diffstat (limited to 'patches/glibc/2.7/190-glibc-2.7-build_wcs_upper_buffer.patch')
-rw-r--r--patches/glibc/2.7/190-glibc-2.7-build_wcs_upper_buffer.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/patches/glibc/2.7/190-glibc-2.7-build_wcs_upper_buffer.patch b/patches/glibc/2.7/190-glibc-2.7-build_wcs_upper_buffer.patch
new file mode 100644
index 0000000..72cde92
--- /dev/null
+++ b/patches/glibc/2.7/190-glibc-2.7-build_wcs_upper_buffer.patch
@@ -0,0 +1,22 @@
+Matthias Kaehlcke <matthias at kaehlcke dot net> writes:
+
+A compilation of an ARM toolchain with glibc 2.7 using crosstool-ng
+failed with a gcc error in glibc-2.7/posix/regex_internal.c, more
+concretly in the function build_wcs_upper_buffer(). The return type of
+the function prototype in regex_internal.h doesn't correspond with the
+return type of this function in regex_internal.c.
+
+The attached patch corrects the return type of the function prototype
+in regex_internal.h
+
+--- glibc-2.7/posix/regex_internal.h.org 2008-05-30 11:16:01.000000000 +0200
++++ glibc-2.7/posix/regex_internal.h 2008-05-30 11:16:35.000000000 +0200
+@@ -391,7 +391,7 @@
+ internal_function;
+ # ifdef RE_ENABLE_I18N
+ static void build_wcs_buffer (re_string_t *pstr) internal_function;
+-static int build_wcs_upper_buffer (re_string_t *pstr) internal_function;
++static reg_errcode_t build_wcs_upper_buffer (re_string_t *pstr) internal_function;
+ # endif /* RE_ENABLE_I18N */
+ static void build_upper_buffer (re_string_t *pstr) internal_function;
+ static void re_string_translate_buffer (re_string_t *pstr) internal_function;