On 17 June 2014 13:15, Paolo Bonzini <pbonz...@redhat.com> wrote: > Il 17/06/2014 19:10, Ed Maste ha scritto: > >> This change breaks the build on FreeBSD: >> >> libcacard/vscclient.c: In function 'send_msg': >> libcacard/vscclient.c:111: warning: implicit declaration of function >> 'htonl' >> ... > > Can you prepare a patch yourself? I would be guessing the right header to > include, sorry.
I can get it to build by either restoring the #include of qemu/sockets.h, or explicitly #including sys/socket.h and netinet/in.h. I'm happy to send a signed-off patch for either change, but it seems there must be more to the original change that I'm missing. What provides the declarations for socket(), htonl(), AF_INET etc. in the Linux build?