diff options
-rw-r--r-- | src/core/support/wrap_memcpy.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 + |