summaryrefslogtreecommitdiff
path: root/lang/gawk/patches/patch-ac
blob: 629f574136c20f203f0d3b057931764f4b6d53b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ac,v 1.8 2005/09/06 14:29:17 tonio Exp $

--- hard-locale.h.orig	2005-05-11 17:28:16.000000000 +0200
+++ hard-locale.h
@@ -22,6 +22,8 @@
    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.  */
 static int
@@ -40,8 +42,6 @@ hard_locale (int category)
       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);