]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
build: work around cygwin header bug
authorEric Blake <eblake@redhat.com>
Thu, 30 May 2013 20:51:58 +0000 (14:51 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 30 May 2013 20:51:58 +0000 (14:51 -0600)
commit9fda950f5c9fe335a550760aed972a799bb5fe7d
tree8086a44b67236661449b3183b7d64c93a675f5f0
parentf43bb1dc20f1f2a2f94f7c505e80559ee6fecccd
build: work around cygwin header bug

A bug in Cygwin [1] and poor error messages from gcc [2] lead
to this confusing compilation error:

qemu/qemu_monitor.c:418:9: error: passing argument 2 of 'sendmsg' from incmpatible pointer type
/usr/include/sys/socket.h:42:11: note: expected 'const struct msghdr *' but argument is of type 'struct msghdr *'

[1] http://cygwin.com/ml/cygwin/2013-05/msg00451.html
[2] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57475

* src/qemu/qemu_monitor.c (includes): Include <sys/socket.h>
before <sys/un.h>.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_monitor.c