From: Thomas Monjalon Date: Tue, 3 Mar 2015 08:37:54 +0000 (+0100) Subject: eal/linux: fix build X-Git-Tag: spdx-start~9509 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8cf61ec829c33d908064b5c88f61cc4914c6c555;p=dpdk.git eal/linux: fix build 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 --- 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