From 2cf2389ef8243307298c2a6290af6eebaf71fcc8 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Tue, 2 Feb 2016 08:50:34 -0800 Subject: Refine platform detection --- src/core/support/wrap_memcpy.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core') diff --git a/src/core/support/wrap_memcpy.c b/src/core/support/wrap_memcpy.c index b191d0396b..6cedcaf166 100644 --- a/src/core/support/wrap_memcpy.c +++ b/src/core/support/wrap_memcpy.c @@ -39,8 +39,11 @@ * Enable by setting LDFLAGS=-Wl,-wrap,memcpy when linking. */ +#ifdef __linux__ __asm__(".symver memcpy,memcpy@GLIBC_2.2.5"); void *__wrap_memcpy(void *destination, const void *source, size_t num) { return memcpy(destination, source, num); } +#endif + -- cgit v1.2.3