diff --git a/src/wget.h b/src/wget.h index d8ab0c90..a0122db9 100644 --- a/src/wget.h +++ b/src/wget.h @@ -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 +# include "xalloc.h" +#else +# include "xmalloc.h" +#endif /* Likewise for logging functions. */ #include "log.h"