[PATCH 1/1] vfio: Make buildable with MUSL runtime
Burakov, Anatoly
anatoly.burakov at intel.com
Mon May 22 11:27:15 CEST 2023
On 5/20/2023 7:07 PM, Philip Prindeville wrote:
> From: Philip Prindeville <philipp at redfish-solutions.com>
>
> pread64() and pwrite64() are declared in <unistd.h> in MUSL and
> other (i.e. not glibc) C runtimes.
>
> Signed-off-by: Philip Prindeville <philipp at redfish-solutions.com>
> ---
> drivers/bus/pci/linux/pci_vfio.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/bus/pci/linux/pci_vfio.c b/drivers/bus/pci/linux/pci_vfio.c
> index fab3483d9f8108fafaff6d022cd41165d1ec5a61..fe83e1a04ec2e7a891425144be3e0aacecb24f09 100644
> --- a/drivers/bus/pci/linux/pci_vfio.c
> +++ b/drivers/bus/pci/linux/pci_vfio.c
> @@ -2,6 +2,7 @@
> * Copyright(c) 2010-2014 Intel Corporation
> */
>
> +#include <unistd.h>
> #include <string.h>
> #include <fcntl.h>
> #include <linux/pci_regs.h>
Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>
--
Thanks,
Anatoly
More information about the dev
mailing list