diff options
author | Stefan Weil <sw@weilnetz.de> | 2013-03-08 19:58:32 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-03-22 13:14:48 +0100 |
commit | 9957fc7f1ed731e5228089ead3f350341cdd29c0 (patch) | |
tree | 874a4ac706c39aa05f66d285e3d3db20bf83e3f3 /bt-host.c | |
parent | afed26082219b49443193b4ac32d113bbcf967fd (diff) | |
download | qemu-9957fc7f1ed731e5228089ead3f350341cdd29c0.zip qemu-9957fc7f1ed731e5228089ead3f350341cdd29c0.tar.gz qemu-9957fc7f1ed731e5228089ead3f350341cdd29c0.tar.bz2 |
MinGW: Replace setsockopt by qemu_setsocketopt
Instead of adding missing type casts which are needed by MinGW for the
4th argument, the patch uses qemu_setsockopt which was invented for this
purpose.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'bt-host.c')
-rw-r--r-- | bt-host.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -171,7 +171,7 @@ struct HCIInfo *bt_host_hci(const char *id) hci_filter_all_ptypes(&flt); hci_filter_all_events(&flt); - if (setsockopt(fd, SOL_HCI, HCI_FILTER, &flt, sizeof(flt)) < 0) { + if (qemu_setsockopt(fd, SOL_HCI, HCI_FILTER, &flt, sizeof(flt)) < 0) { fprintf(stderr, "qemu: Can't set HCI filter on socket (%i)\n", errno); return 0; } |