diff options
author | Craig Tiller <ctiller@google.com> | 2016-02-02 08:50:34 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-02-02 08:50:34 -0800 |
commit | 2cf2389ef8243307298c2a6290af6eebaf71fcc8 (patch) | |
tree | dfcf1bf43231d89ea58af568836f52c018fd86db /src/core | |
parent | 00572a9dec89bb93e458c9c1a68cf8de9cd7b5bd (diff) |
Refine platform detection
Diffstat (limited to 'src/core')
-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 + |