From 842907c6f8e6022f443175072e65bc516eb0973b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 12 Jul 1996 02:01:17 +0000 Subject: * inet/getnetent_r.c: Define NEED_H_ERRNO. * inet/getnetbynm_r.c: Likewise. * inet/getnetent.c: Likewise. * inet/getnetbyad_r.c: Likewise. * inet/getnetbyad.c: Likewise. * inet/getnetbynm.c: Likewise. * sysdeps/generic/pselect.c: Include . * misc/sys/select.h: Include instead of for `struct timespec'. --- intl/localealias.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'intl/localealias.c') diff --git a/intl/localealias.c b/intl/localealias.c index b30a9e5..6e2b27d 100644 --- a/intl/localealias.c +++ b/intl/localealias.c @@ -56,6 +56,9 @@ void free (); #endif #if defined HAVE_STRING_H || defined _LIBC +# ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +# endif # include #else # include @@ -110,6 +113,8 @@ struct block_list free (old); \ } \ } while (0) +# undef alloca +# define alloca(size) (malloc (size)) #endif /* have alloca */ @@ -188,7 +193,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; -- cgit v1.1