X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=bt-host.c;h=49205bf288cf2441b1a78486c1593c8c576c1967;hb=032ac6f8bfb68746cb0eea407b1cd2b22a78898f;hp=311864517defc53d4c8e1615c51a291b23c5de64;hpb=f8fe796407d8b340def61a6b57991e47aee3cfc4;p=qemu.git diff --git a/bt-host.c b/bt-host.c index 311864517..49205bf28 100644 --- a/bt-host.c +++ b/bt-host.c @@ -18,9 +18,8 @@ */ #include "qemu-common.h" -#include "net.h" -#include "bt-host.h" -#include "main-loop.h" +#include "sysemu/bt.h" +#include "qemu/main-loop.h" #ifndef _WIN32 # include @@ -172,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; }