X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=bt-host.c;h=2da3c32204b0262a89b21b27847ed87d56aab2a0;hb=9957fc7f1ed731e5228089ead3f350341cdd29c0;hp=8b47370b263ad822f09983cb38e99351f2b670e0;hpb=077805fa92b9089137c6b6b196d449ee05cc342f;p=qemu.git diff --git a/bt-host.c b/bt-host.c index 8b47370b2..2da3c3220 100644 --- a/bt-host.c +++ b/bt-host.c @@ -18,10 +18,8 @@ */ #include "qemu-common.h" -#include "qemu-char.h" -#include "net.h" -#include "bt-host.h" -#include "main-loop.h" +#include "bt/bt.h" +#include "qemu/main-loop.h" #ifndef _WIN32 # include @@ -173,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; }