From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=WQJt7cX+oB5asZrW3RSQEIoKwZuqJOFU/J+H3J4IvQs=; b=FTFN9Ia7+PGmoxdHkt0wd7eG75pTQnXLlYvO+1i4j4Q8Vvw/QGR1whqDx85BiEYJ0j 6SwQvo9TJ+OmwAjTiARAueS2VeRwhthpPuAJqf37HngTqlqds+FYXqgqma+vTDzrSZ3f kjg6qPmYhEhNHByqYugYbZf8rP3yW5mc92b1E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=WQJt7cX+oB5asZrW3RSQEIoKwZuqJOFU/J+H3J4IvQs=; b=F+fOUXQMDfdWPSScHAv9BTrqNtwGdf2+Ufl6OEyFp2ie67Ag3OlNjVRIJ/hx87/33W e3xM1KEqe4jganc/qTSRvsyn52dgXXfS0yTJJ+RPXNLAwztHlVaB0J5gftQT5R79Yv1I OsIiODn8okt5Jc6SRpe38borZVkqOKkHUqpUTPCVdYpTmhqUkYyT/bzxh48866NX52T0 di4lgM2dseGAutpsDE6bHmmWnyig4HemR6Q6tO1W8laOstzrYCZ4EWsYEUXNcPfGX5oZ NgJTshwujr9oMppZksoXB8FY/E9urCJVUrCLTc2V74oLzCq+e5Bci1UZtARs7tW8aI3W nUQg== X-Gm-Message-State: AOPr4FUPZ8JMibTMcmBOGx9akNEfWA6G8HuxkIKoyQqbmzZl5U9mCutqThvJvuOP+aXsmM5Q X-Received: by 10.140.100.225 with SMTP id s88mr38657268qge.76.1460948770994; Sun, 17 Apr 2016 20:06:10 -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) From: Ricardo Salveti To: dev@dpdk.org Date: Mon, 18 Apr 2016 00:06:06 -0300 Message-Id: <1460948766-4504-1-git-send-email-ricardo.salveti@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] xenvirt: support dynamic page size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2016 03:06:11 -0000 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