[dpdk-dev] [PATCH] eal/linux: fix build
David Marchand
david.marchand at 6wind.com
Tue Mar 3 10:12:19 CET 2015
On Tue, Mar 3, 2015 at 9:44 AM, Thomas Monjalon <thomas.monjalon at 6wind.com>
wrote:
> 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 <thomas.monjalon at 6wind.com>
> ---
> 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 35d31c5..0b397ca 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 <string.h>
> +#include <unistd.h>
> #include <fcntl.h>
> #include <dirent.h>
> #include <sys/stat.h>
>
>
Acked-by: David Marchand <david.marchand at 6wind.com>
--
David Marchand
More information about the dev
mailing list