summaryrefslogtreecommitdiffstats
path: root/package/gawk/gawk-3.1.5-gcc4.patch
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-12 23:02:31 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-12 23:02:31 +0000
commit163511722badd3345bc76a7a132f8f2850953fb2 (patch)
treef09e79aef704cefa9d237b920fec1a274a645da8 /package/gawk/gawk-3.1.5-gcc4.patch
parent80f975a48de92ea6f66eeeb5e20d032a4b9a7c6c (diff)
downloadbuildroot-novena-163511722badd3345bc76a7a132f8f2850953fb2.tar.gz
buildroot-novena-163511722badd3345bc76a7a132f8f2850953fb2.zip
version bump
Diffstat (limited to 'package/gawk/gawk-3.1.5-gcc4.patch')
-rw-r--r--package/gawk/gawk-3.1.5-gcc4.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/gawk/gawk-3.1.5-gcc4.patch b/package/gawk/gawk-3.1.5-gcc4.patch
new file mode 100644
index 000000000..3ebadcbe6
--- /dev/null
+++ b/package/gawk/gawk-3.1.5-gcc4.patch
@@ -0,0 +1,23 @@
+Sat Sep 3 16:03:25 EDT 2005 Kito Danya Dietrich <kito@gentoo.org>
+
+ * hard-locale.h (hard_locale): Declare xmalloc in global scope rather than
+ function scope which gcc-4.x rejects.
+
+--- gawk-3.1.5/hard-locale.h
++++ gawk-3.1.5/hard-locale.h
+@@ -21,6 +21,7 @@
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+
++static ptr_t xmalloc PARAMS ((size_t n));
+
+ /* Return nonzero if the current CATEGORY locale is hard, i.e. if you
+ can't get away with assuming traditional C or POSIX behavior. */
+@@ -40,7 +41,6 @@
+ if (strcmp (p, "C") == 0 || strcmp (p, "POSIX") == 0)
+ hard = 0;
+ # else
+- static ptr_t xmalloc PARAMS ((size_t n));
+
+ char *locale = xmalloc (strlen (p) + 1);
+ strcpy (locale, p);