Comments on pmake diffs for building on Linux

M. Warner Losh imp at bsdimp.com
Tue Mar 4 20:58:10 UTC 2008


In message: <20080304200453.GA10987 at infradead.org>
            Christoph Hellwig <hch at infradead.org> writes:
: 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.

OK.  I think I'll go this route because doing so I have even fewer
changes necessary.

btw, did he give a reason?

Warner


More information about the freebsd-hackers mailing list