diff --git a/gl/regex_internal.h b/gl/regex_internal.h
index 2cb8c4d0b7cbdf85f3ba2555f90007d72ce690a0..5aa5aa287acd5f899f2eec04a2687c50ecbecc1d 100644 (file)
--- a/gl/regex_internal.h
+++ b/gl/regex_internal.h
# else
/* alloca is implemented with malloc, so just use malloc. */
# define __libc_use_alloca(n) 0
+# undef alloca
+# define alloca(n) malloc (n)
# endif
#endif