librte-port3.symbols is now arch specific
[deb_dpdk.git] / debian / patches / ubuntu-fix-xenvirt-support-dynamic-page-size.patch
1 Author: Ricardo Salveti <ricardo.salveti@linaro.org>
2 Last-Update: 2016-04-17
3 Fowarded: yes
4 Description: xenvirt: support dynamic page size
5
6 Fix build failure since PAGE_SIZE is not defined on ARM (multiple values
7 are possible, so it needs to dynamically get the page size used).
8
9 http://dpdk.org/ml/archives/dev/2016-April/037586.html
10
11 Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
12 ---
13  drivers/net/xenvirt/rte_eth_xenvirt.c | 3 +++
14  1 file changed, 3 insertions(+)
15
16 diff --git a/drivers/net/xenvirt/rte_eth_xenvirt.c b/drivers/net/xenvirt/rte_eth_xenvirt.c
17 index b9638d9..afc0193 100644
18 --- a/drivers/net/xenvirt/rte_eth_xenvirt.c
19 +++ b/drivers/net/xenvirt/rte_eth_xenvirt.c
20 @@ -39,6 +39,9 @@
21  #include <sys/mman.h>
22  #include <errno.h>
23  #include <sys/user.h>
24 +#ifndef PAGE_SIZE
25 +#define PAGE_SIZE sysconf(_SC_PAGE_SIZE)
26 +#endif
27  #include <linux/binfmts.h>
28  #include <xen/xen-compat.h>
29  #if __XEN_LATEST_INTERFACE_VERSION__ < 0x00040200
30 -- 
31 2.7.4
32