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.

_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to