summaryrefslogtreecommitdiffstats
path: root/intl/localealias.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-06-11 17:19:31 +0000
committerJim Meyering <jim@meyering.net>1996-06-11 17:19:31 +0000
commit9b647bea250faf31f6e8d1a9cbe1dd362de73218 (patch)
treedc7ca0aa5f21fa644c94fb8f94cf1f207a50a060 /intl/localealias.c
parentf62de6194aad3ace0c12b414f05486338491c6f6 (diff)
downloadidutils-9b647bea250faf31f6e8d1a9cbe1dd362de73218.tar.gz
idutils-9b647bea250faf31f6e8d1a9cbe1dd362de73218.tar.bz2
idutils-9b647bea250faf31f6e8d1a9cbe1dd362de73218.zip
merge with 0.10.17
Diffstat (limited to 'intl/localealias.c')
-rw-r--r--intl/localealias.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/intl/localealias.c b/intl/localealias.c
index fb5c26c..7aee6a8 100644
--- a/intl/localealias.c
+++ b/intl/localealias.c
@@ -52,6 +52,9 @@ void free ();
#endif
#if defined HAVE_STRING_H || defined _LIBC
+# ifndef _GNU_SOURCE
+# define _GNU_SOURCE 1
+# endif
# include <string.h>
#else
# include <strings.h>
@@ -106,6 +109,8 @@ struct block_list
free (old); \
} \
} while (0)
+# undef alloca
+# define alloca(size) (malloc (size))
#endif /* have alloca */
@@ -184,7 +189,7 @@ read_alias_file (fname, fname_len)
int fname_len;
{
#ifndef HAVE_ALLOCA
- struct block_list *alloca_list = NULL;
+ struct block_list *block_list = NULL;
#endif
FILE *fp;
char *full_fname;