diff --git a/native/src/main/c/NativeCipherImpl.cpp b/native/src/main/c/NativeCipherImpl.cpp index 22c7f00c..9de328ea 100644 --- a/native/src/main/c/NativeCipherImpl.cpp +++ b/native/src/main/c/NativeCipherImpl.cpp @@ -6,7 +6,7 @@ // Support for CentOS 6 __asm__(".symver memcpy,memcpy@GLIBC_2.2.5"); -void *__wrap_memcpy(void *dest, const void *src, size_t n) { +extern "C" void *__wrap_memcpy(void *dest, const void *src, size_t n) { return memcpy(dest, src, n); } diff --git a/native/src/main/c/NativeCompressImpl.cpp b/native/src/main/c/NativeCompressImpl.cpp index 4574ccf1..b490ede5 100644 --- a/native/src/main/c/NativeCompressImpl.cpp +++ b/native/src/main/c/NativeCompressImpl.cpp @@ -6,7 +6,7 @@ // Support for CentOS 6 __asm__(".symver memcpy,memcpy@GLIBC_2.2.5"); -void *__wrap_memcpy(void *dest, const void *src, size_t n) { +extern "C" void *__wrap_memcpy(void *dest, const void *src, size_t n) { return memcpy(dest, src, n); } diff --git a/native/src/main/resources/native-cipher.so b/native/src/main/resources/native-cipher.so index 78c26f28..8ac128df 100755 Binary files a/native/src/main/resources/native-cipher.so and b/native/src/main/resources/native-cipher.so differ diff --git a/native/src/main/resources/native-compress.so b/native/src/main/resources/native-compress.so index d5e04782..8fc5fef1 100755 Binary files a/native/src/main/resources/native-compress.so and b/native/src/main/resources/native-compress.so differ