aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gawk/files/patch-hard-locale.h
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gawk/files/patch-hard-locale.h')
-rw-r--r--lang/gawk/files/patch-hard-locale.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/gawk/files/patch-hard-locale.h b/lang/gawk/files/patch-hard-locale.h
new file mode 100644
index 000000000000..7da22744c3cc
--- /dev/null
+++ b/lang/gawk/files/patch-hard-locale.h
@@ -0,0 +1,22 @@
+
+$FreeBSD$
+
+--- hard-locale.h.orig
++++ 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,7 +42,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);