From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Salveti Subject: [PATCH] xenvirt: support dynamic page size Date: Mon, 18 Apr 2016 00:06:06 -0300 Message-ID: <1460948766-4504-1-git-send-email-ricardo.salveti@linaro.org> To: dev@dpdk.org Return-path: Received: from mail-qg0-f45.google.com (mail-qg0-f45.google.com [209.85.192.45]) by dpdk.org (Postfix) with ESMTP id 7B0202931 for ; Mon, 18 Apr 2016 05:06:11 +0200 (CEST) Received: by mail-qg0-f45.google.com with SMTP id c6so109637005qga.1 for ; Sun, 17 Apr 2016 20:06:11 -0700 (PDT) Received: from localhost.localdomain ([189.101.222.149]) by smtp.gmail.com with ESMTPSA id a17sm20037424qgf.25.2016.04.17.20.06.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 Apr 2016 20:06:10 -0700 (PDT) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix build failure since PAGE_SIZE is not defined on ARM (multiple values are possible, so it needs to dynamically get the page size used). Signed-off-by: Ricardo Salveti --- drivers/net/xenvirt/rte_eth_xenvirt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/xenvirt/rte_eth_xenvirt.c b/drivers/net/xenvirt/rte_eth_xenvirt.c index b9638d9..afc0193 100644 --- a/drivers/net/xenvirt/rte_eth_xenvirt.c +++ b/drivers/net/xenvirt/rte_eth_xenvirt.c @@ -39,6 +39,9 @@ #include #include #include +#ifndef PAGE_SIZE +#define PAGE_SIZE sysconf(_SC_PAGE_SIZE) +#endif #include #include #if __XEN_LATEST_INTERFACE_VERSION__ < 0x00040200 -- 2.7.4