use __UCLIBC_HAS_BACKTRACE__ to decide on backtrace() availability
[buildroot.git] / package / gawk / gawk-3.1.5-gcc4.patch
blob3ebadcbe6684ce3ec9cdc54d1e762b134d0a649d
1 Sat Sep 3 16:03:25 EDT 2005 Kito Danya Dietrich <kito@gentoo.org>
3 * hard-locale.h (hard_locale): Declare xmalloc in global scope rather than
4 function scope which gcc-4.x rejects.
6 --- gawk-3.1.5/hard-locale.h
7 +++ gawk-3.1.5/hard-locale.h
8 @@ -21,6 +21,7 @@
9 along with this program; if not, write to the Free Software Foundation,
10 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
12 +static ptr_t xmalloc PARAMS ((size_t n));
14 /* Return nonzero if the current CATEGORY locale is hard, i.e. if you
15 can't get away with assuming traditional C or POSIX behavior. */
16 @@ -40,7 +41,6 @@
17 if (strcmp (p, "C") == 0 || strcmp (p, "POSIX") == 0)
18 hard = 0;
19 # else
20 - static ptr_t xmalloc PARAMS ((size_t n));
22 char *locale = xmalloc (strlen (p) + 1);
23 strcpy (locale, p);