gawk-3.1.5-gcc4.patch 826 B

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