From: Anatoly Burakov Date: Thu, 4 Oct 2018 10:20:34 +0000 (+0100) Subject: vfio: improve musl compatibility X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=edd035d2412bfc2c43287fae98cdd8f763e287d1;p=dpdk.git vfio: improve musl compatibility Musl already has PAGE_SIZE defined, and our define clashed with it. Rename our define to SYS_PAGE_SIZE. Bugzilla ID: 36 Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- diff --git a/drivers/bus/pci/linux/pci_vfio.c b/drivers/bus/pci/linux/pci_vfio.c index cc2387eb0c..b1f0683fed 100644 --- a/drivers/bus/pci/linux/pci_vfio.c +++ b/drivers/bus/pci/linux/pci_vfio.c @@ -37,7 +37,9 @@ #ifdef VFIO_PRESENT +#ifndef PAGE_SIZE #define PAGE_SIZE (sysconf(_SC_PAGESIZE)) +#endif #define PAGE_MASK (~(PAGE_SIZE - 1)) static struct rte_tailq_elem rte_vfio_tailq = {