From 8cf61ec829c33d908064b5c88f61cc4914c6c555 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Tue, 3 Mar 2015 09:37:54 +0100 Subject: [PATCH] eal/linux: fix build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Compilation fails in some distributions because of missing unistd.h needed for pread/pwrite (seen with Suse): lib/librte_eal/linuxapp/eal/eal_pci_uio.c:62:2: error: implicit declaration of function ‘pread’ Fixes: 4a499c649590 ("eal/linux: enable uio_pci_generic support") Signed-off-by: Thomas Monjalon Acked-by: David Marchand --- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c index 35d31c50d3..0b397ca728 100644 --- a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c +++ b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c @@ -32,6 +32,7 @@ */ #include +#include #include #include #include -- 2.20.1