A module shouldn't rely on internals of another module. bitsetv.c invokes xalloc_die(), therefore it should #include "xalloc.h", regardless whether bitset.h already - indirectly through bitset/base.h - includes xalloc.h.
2019-01-04 Bruno Haible <br...@clisp.org> bitsetv: Fix module dependencies. * lib/bitsetv.c: Include xalloc.h. * modules/bitsetv (Depends-on): Add 'xalloc'. diff --git a/lib/bitsetv.c b/lib/bitsetv.c index b509982..e3cc584 100644 --- a/lib/bitsetv.c +++ b/lib/bitsetv.c @@ -22,6 +22,8 @@ #include <stdlib.h> +#include "xalloc.h" + /* Create a vector of N_VECS bitsets, each of N_BITS, and of type TYPE. */ diff --git a/modules/bitsetv b/modules/bitsetv index 30be286..4b6c1a8 100644 --- a/modules/bitsetv +++ b/modules/bitsetv @@ -7,6 +7,7 @@ lib/bitsetv.h Depends-on: bitset +xalloc Makefile.am: lib_SOURCES += bitsetv.c