X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=bt-host.c;h=2da3c32204b0262a89b21b27847ed87d56aab2a0;hb=9957fc7f1ed731e5228089ead3f350341cdd29c0;hp=0d3ad28e8c0c567eec70016e7acb00e4d641c3dc;hpb=9ca2140ab10a9fde4e60fb9499a733932d30386f;p=qemu.git diff --git a/bt-host.c b/bt-host.c index 0d3ad28e8..2da3c3220 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 "bt/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; }