[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] compile fail on FreeBSD



On Fri, Nov 11, 2011 at 05:31:14PM -0700, Eric Blake wrote:
> This failure on FreeBSD 8.2 popped up this week, and I suspect Dan's
> virnetdev refactoring, but haven't had time to further investigate and
> fix it:
> 
> util/virnetdev.c: In function 'virNetDevExists':
> util/virnetdev.c:93: error: storage size of 'ifr' isn't known
> util/virnetdev.c:95: warning: implicit declaration of function
> 'virNetDevSetupControl'
> 
> and so on.  Probably some conditional compilation going wrong when on a
> non-Linux machine.

This code is protected by a

#ifdef HAVE_NET_IF_H


So if BSD's net/if.h does not provide any 'struct ifreq' then we need to
fix things.

Does anyone know if the 'struct ifreq'  / SIOCGIFHWADDR / SIOCGIFMTU / etc
ioctl() stuff is entirely Linux specific, or is it semi portable to other
UNIX ?  


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]