aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Kiss <zoltan.kiss@linaro.org>2016-07-26 14:02:41 +0100
committerZoltan Kiss <zoltan.kiss@linaro.org>2016-07-26 14:02:41 +0100
commite7a3114f048af76c047fe44b2b2e15440264fde6 (patch)
tree5aaab75906eade8a6c456fd5ff540143d23ddce5
parent0968be36721ae922e61da1684dd141ba4890ea04 (diff)
downloadodp-dpdk-e7a3114f048af76c047fe44b2b2e15440264fde6.tar.gz
linux-dpdk: std_clib: make sure dpdk_memcpy is global symbol
Without this visibility setting it ends up being a local symbol in the shared library. Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
-rw-r--r--platform/linux-dpdk/odp_std_clib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/linux-dpdk/odp_std_clib.c b/platform/linux-dpdk/odp_std_clib.c
index 95424af8..d53dbcf1 100644
--- a/platform/linux-dpdk/odp_std_clib.c
+++ b/platform/linux-dpdk/odp_std_clib.c
@@ -10,6 +10,7 @@ extern "C" {
#include <rte_memcpy.h>
+#include <odp/api/visibility_begin.h>
#if defined(__arm__) || defined(__aarch64__)
static void *_rte_memcpy(void *dst, const void *src, size_t n)
{
@@ -20,6 +21,7 @@ void* (*const dpdk_memcpy)(void*, const void*, size_t) = &_rte_memcpy;
#else
void* (*const dpdk_memcpy)(void*, const void*, size_t) = &rte_memcpy;
#endif
+#include <odp/api/visibility_end.h>
#ifdef __cplusplus
}