Skip to content

Commit

Permalink
vfio: fix include with musl runtime
Browse files Browse the repository at this point in the history
[ upstream commit c41a103c961ded5a0966652f4daf0a661a947352 ]

pread64() and pwrite64() are declared in <unistd.h> in MUSL and
other (i.e. not glibc) C runtimes.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
  • Loading branch information
pprindeville authored and kevintraynor committed Jul 11, 2023
1 parent 096ec31 commit ae3de8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,7 @@ Peter Spreadborough <peter.spreadborough@broadcom.com>
Petr Houska <t-pehous@microsoft.com>
Phanendra Vukkisala <pvukkisala@marvell.com>
Phil Yang <phil.yang@arm.com>
Philip Prindeville <philipp@redfish-solutions.com>
Pierre Pfister <ppfister@cisco.com>
Piotr Azarewicz <piotr.azarewicz@intel.com> <piotrx.t.azarewicz@intel.com>
Piotr Bartosiewicz <piotr.bartosiewicz@atendesoftware.pl>
Expand Down
1 change: 1 addition & 0 deletions drivers/bus/pci/linux/pci_vfio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Copyright(c) 2010-2014 Intel Corporation
*/

#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <linux/pci_regs.h>
Expand Down

0 comments on commit ae3de8c

Please sign in to comment.