Comments on pmake diffs for building on Linux

Christoph Hellwig hch at infradead.org
Tue Mar 4 20:05:18 UTC 2008


On Mon, Mar 03, 2008 at 10:42:56PM -0700, M. Warner Losh wrote:
> +#ifndef TAILQ_HEAD_INITIALIZER
> +#define TAILQ_HEAD_INITIALIZER(head) { NULL, &(head).tqh_first }
> +#endif
> +
> +#ifndef TAILQ_FOREACH
> +#define	TAILQ_FOREACH(var, head, field)					\
> +	for ((var) = TAILQ_FIRST((head));				\
> +	    (var);							\
> +	    (var) = TAILQ_NEXT((var), field))
> +#endif

...

I think you might be better off with a shadow include/ directory
that provides a current sys/queue.h on Linux which is what quite a few
other packages do. I've tried updating the on in glibc a few years ago
but the maintainer refused to take it.



More information about the freebsd-hackers mailing list