summaryrefslogtreecommitdiff
path: root/lib/xmalloca.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-12-31 11:55:46 +0100
committerBruno Haible <bruno@clisp.org>2007-12-31 11:55:46 +0100
commitf4637bbf9a6a5f1d3c5390fdab23882c25dfe464 (patch)
treeb1494f519c07eff070becba18cade85c94fc419d /lib/xmalloca.c
parenta464478ce70f993f9618ba446eaf68e11e13edee (diff)
downloadgnulib-f4637bbf9a6a5f1d3c5390fdab23882c25dfe464.tar.gz
Don't define xmmalloca if not needed.
Diffstat (limited to 'lib/xmalloca.c')
-rw-r--r--lib/xmalloca.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/xmalloca.c b/lib/xmalloca.c
index ad527cd1de..d7cc346d16 100644
--- a/lib/xmalloca.c
+++ b/lib/xmalloca.c
@@ -22,6 +22,8 @@
#include "xalloc.h"
+#if HAVE_ALLOCA
+
void *
xmmalloca (size_t n)
{
@@ -32,3 +34,5 @@ xmmalloca (size_t n)
xalloc_die ();
return p;
}
+
+#endif