source: patches/eglibc-2.17-qecvt-2.patch@ e8d0520

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since e8d0520 was 6c613c4, checked in by William Harrington <kb0iic@…>, 11 years ago

Update ppc/ppc64 eglibc qecvt patch.

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[6c613c4]1Submitted By: William Harrington kb0iic at cross-lfs dot org.
2Date: 2013-08-12
3Initial Package Version: 2.17
4Upstream Status: Applied to 2.18
5Origin: http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=4220c3ef773c0e7fff7c95ecd7cff69886fe4c0e
6Description: Fixes a mismatch of guards around qcvt and friends.
7
8Redone for eglibc-2.17 on 2013-08-12
9
10diff -Naur eglibc-2.17.orig/stdlib/bits/stdlib-ldbl.h eglibc-2.17/stdlib/bits/stdlib-ldbl.h
11--- eglibc-2.17.orig/stdlib/bits/stdlib-ldbl.h 2012-02-18 02:24:59.000000000 +0000
12+++ eglibc-2.17/stdlib/bits/stdlib-ldbl.h 2013-08-11 22:09:07.000000000 +0000
13@@ -30,12 +30,10 @@
14 __LDBL_REDIR1_DECL (strtold_l, strtod_l)
15 #endif
16
17-#if defined __USE_SVID || defined __USE_XOPEN_EXTENDED
18-# ifdef __USE_MISC
19+#ifdef __USE_MISC
20 __LDBL_REDIR1_DECL (qecvt, ecvt)
21 __LDBL_REDIR1_DECL (qfcvt, fcvt)
22 __LDBL_REDIR1_DECL (qgcvt, gcvt)
23 __LDBL_REDIR1_DECL (qecvt_r, ecvt_r)
24 __LDBL_REDIR1_DECL (qfcvt_r, fcvt_r)
25-# endif
26 #endif
27diff -Naur eglibc-2.17.orig/stdlib/stdlib.h eglibc-2.17/stdlib/stdlib.h
28--- eglibc-2.17.orig/stdlib/stdlib.h 2012-11-09 22:50:35.000000000 +0000
29+++ eglibc-2.17/stdlib/stdlib.h 2013-08-11 22:06:29.000000000 +0000
30@@ -819,8 +819,9 @@
31 extern char *gcvt (double __value, int __ndigit, char *__buf)
32 __THROW __nonnull ((3)) __wur;
33
34+#endif
35
36-# ifdef __USE_MISC
37+#ifdef __USE_MISC
38 /* Long double versions of above functions. */
39 extern char *qecvt (long double __value, int __ndigit,
40 int *__restrict __decpt, int *__restrict __sign)
41@@ -849,9 +850,7 @@
42 int *__restrict __decpt, int *__restrict __sign,
43 char *__restrict __buf, size_t __len)
44 __THROW __nonnull ((3, 4, 5));
45-# endif /* misc */
46-#endif /* use MISC || use X/Open Unix */
47-
48+#endif /* misc */
49
50 __BEGIN_NAMESPACE_STD
51 /* Return the length of the multibyte character
Note: See TracBrowser for help on using the repository browser.