sys/queue.h
Frank Cusack
fcusack at fcusack.com
Tue Mar 12 14:49:01 EST 2002
On Mon, Mar 11, 2002 at 06:24:14PM -0800, Kevin Steves wrote:
> On Mon, 11 Mar 2002, Ben Lindstrom wrote:
> :It is too late by time it tries to load it in the individual C files
> :for BSD/OS. It has to be loaded before #include <netinet/in.h> in
> :defines.h or else 4.2 fails.
>
> hmm. is this a symbol clash or does that include sys/queue.h?
>
> if the latter, is their queue.h #ifdef protected? i'm thinking of:
>
> defines.h:
>
> #define _SYS_QUEUE_H_
> #include <netinet/in.h> /* For IPv6 macros */
> #undef _SYS_QUEUE_H_
That seems bad; if netinet/in.h includes sys/queue.h it's because it
needs definitions there. Instead, just include openssh's sys/queue.h
before netinet/in.h, and #define the appropriate macro.
/fc
More information about the openssh-unix-dev
mailing list