Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Mar 2008 13:57:05 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        hch@infradead.org
Cc:        hackers@freebsd.org
Subject:   Re: Comments on pmake diffs for building on Linux
Message-ID:  <20080304.135705.1179136136.imp@bsdimp.com>
In-Reply-To: <20080304200453.GA10987@infradead.org>
References:  <20080303.224256.635730757.imp@bsdimp.com> <20080304200453.GA10987@infradead.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20080304200453.GA10987@infradead.org>
            Christoph Hellwig <hch@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080304.135705.1179136136.imp>