eal/linux: fix build functions pread and pwrite
authorMarvin Liu <yong.liu@intel.com>
Thu, 19 Mar 2015 03:16:58 +0000 (11:16 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 22 Mar 2015 23:30:47 +0000 (00:30 +0100)
commit89085f13e672691c4d3c3b65ddb9b28ec3d728fb
tree5eca05bffd738911554e9099276b3d1a52cb0b69
parent6ae9bee6c6c17a2c685557181d50adf575b1d880
eal/linux: fix build functions pread and pwrite

Function pread need macro _XOPEN_SOURCE be defined.
Add _GNU_SOURCE will fix this issue.

error: implicit declaration of function â€˜pread’

Fixes: 4a499c649590 ("eal/linux: enable uio_pci_generic support")

Signed-off-by: Marvin Liu <yong.liu@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/linuxapp/eal/Makefile