dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] eal/linux: fix build
@ 2015-03-03  8:44 Thomas Monjalon
       [not found] ` <1425372295-27839-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Monjalon @ 2015-03-03  8:44 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

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-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
---
 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>
-- 
2.2.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-03-05  9:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-03  8:44 [PATCH] eal/linux: fix build Thomas Monjalon
     [not found] ` <1425372295-27839-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2015-03-03  9:12   ` David Marchand
     [not found]     ` <CALwxeUscebzq7+iK4HrTrhA+Kf5yCF8sZz+RABx0=txs0D5Xbw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-03-03 22:23       ` Thomas Monjalon
2015-03-05  9:13         ` Qiu, Michael
     [not found]           ` <533710CFB86FA344BFBF2D6802E60286CEED33-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-03-05  9:28             ` Ananyev, Konstantin
2015-03-05  9:51             ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).