Don't define xmmalloca if not needed.
[gnulib.git] / lib / xmalloca.c
index ad527cd..d7cc346 100644 (file)
@@ -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