Date: Tue, 4 Mar 2008 15:04:53 -0500 From: Christoph Hellwig <hch@infradead.org> To: "M. Warner Losh" <imp@bsdimp.com> Cc: hackers@freebsd.org Subject: Re: Comments on pmake diffs for building on Linux Message-ID: <20080304200453.GA10987@infradead.org> In-Reply-To: <20080303.224256.635730757.imp@bsdimp.com> References: <20080303.224256.635730757.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080304200453.GA10987>