Re: [PATCH] net_if: new module

2012-09-06 Thread Eric Blake
On 09/06/2012 01:06 AM, Jasper Lievisse Adriaanse wrote: > On Wed, Sep 05, 2012 at 03:59:10PM -0600, Eric Blake wrote: >> OpenBSD's is not self-contained; this should compile: >> >> | #define _POSIX_C_SOURCE 200809L >> | #include >> | struct if_nameindex i; >> >> but fails >> * doc/posix-headers

Re: [PATCH] net_if: new module

2012-09-06 Thread Jasper Lievisse Adriaanse
On Wed, Sep 05, 2012 at 03:59:10PM -0600, Eric Blake wrote: > OpenBSD's is not self-contained; this should compile: > > | #define _POSIX_C_SOURCE 200809L > | #include > | struct if_nameindex i; > > but fails with: > > In file included from foo.c:2: > /usr/include/net/if.h:112: error: expected

[PATCH] net_if: new module

2012-09-05 Thread Eric Blake
OpenBSD's is not self-contained; this should compile: | #define _POSIX_C_SOURCE 200809L | #include | struct if_nameindex i; but fails with: In file included from foo.c:2: /usr/include/net/if.h:112: error: expected specifier-qualifier-list before 'u_int' ... /usr/include/net/if.h:674: error: f