X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/515689235c4c3d9c3f0406ddcdd21ed8da77062b..564720219a0863625e9989fd258ccc57a616550f:/bt-host.c diff --git a/bt-host.c b/bt-host.c index 0d3ad28e8c..49205bf288 100644 --- a/bt-host.c +++ b/bt-host.c @@ -18,9 +18,8 @@ */ #include "qemu-common.h" -#include "qemu-char.h" -#include "net.h" -#include "bt-host.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; }