]> sjero.net Git - wget/commitdiff
Conditional inclusion of Gnulib alloc headers.
authorSteven Schubiger <schubiger@gmail.com>
Fri, 18 Apr 2008 19:42:02 +0000 (21:42 +0200)
committerSteven Schubiger <schubiger@gmail.com>
Fri, 18 Apr 2008 19:42:02 +0000 (21:42 +0200)
src/wget.h

index d8ab0c90a7b8c1a4c24f9ae5a77d5c66a49e4fde..a0122db9cc2043e7006c62ce7c9e1756229f857a 100644 (file)
@@ -208,7 +208,12 @@ typedef double SUM_SIZE_INT;
 #include "options.h"
 
 /* Everything uses this, so include them here directly.  */
-#include "xmalloc.h"
+#ifdef USE_GNULIB_ALLOC
+# include <alloca.h>
+# include "xalloc.h"
+#else
+# include "xmalloc.h"
+#endif
 
 /* Likewise for logging functions.  */
 #include "log.h"