[libvirt] broken OpenBSD <net/if.h> [was: [PATCH] Include some extra headers needed for OpenBSD.]
Eric Blake
eblake at redhat.com
Wed Sep 5 21:54:19 UTC 2012
On 09/04/2012 11:23 AM, Jasper Lievisse Adriaanse wrote:
> On Tue, Sep 04, 2012 at 11:08:30AM -0600, Eric Blake wrote:
>> [adding gnulib]
>>
>> Ouch. The POSIX definition of <net/if.h> doesn't include any interface
>> that needs to use struct sockaddr. Which OpenBSD extension function is
>> triggering this warning? According to POSIX, this .c file should compile:
>>
>> #define _POSIX_C_SOURCE 200809L
>> #include <net/if.h>
>> #include <sys/socket.h>
>> struct if_nameindex i;
It turns out that FreeBSD 8.2 also has a non-self-contained <net/if.h>;
so even though I don't have an OpenBSD box handy today, I was able to
test a module for a replacement header that works around the issue.
Patch coming up shortly.
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120905/76badd4f/attachment-0001.sig>
More information about the libvir-list
mailing list