summaryrefslogtreecommitdiffstats
path: root/devel/gmake381/files/patch-gettext.c
blob: fd98d7e3604d2d30cd3ddd63a3931dc2ddcbde4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

$FreeBSD$

--- gettext.c.orig	Wed Feb  9 08:02:18 2000
+++ gettext.c	Sun Jul 28 04:22:31 2002
@@ -22,6 +22,10 @@
 # include <config.h>
 #endif
 
+#if defined HAVE_LOCALE_H || defined _LIBC
+# include <locale.h>
+#endif
+
 #ifdef __GNUC__
 # define alloca __builtin_alloca
 # define HAVE_ALLOCA 1
@@ -1294,6 +1298,15 @@
 		    {
 		      FREE_BLOCKS (block_list);
 		      return added;
+		    }
+		  if (string_space != new_pool)
+		    {
+		      size_t i;
+		      for (i = 0; i < nmap; i++)
+			{
+			  map[i].alias += new_pool - string_space;
+			  map[i].value += new_pool - string_space;
+			}
 		    }
 		  string_space = new_pool;
 		  string_space_max = new_size;
OpenPOWER on IntegriCloud