diff options
author | fanquake <fanquake@gmail.com> | 2021-03-10 14:31:10 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-03-10 14:31:10 +0800 |
commit | 52f0be3a933225429b9b59b58de4fe54c2b20a02 (patch) | |
tree | 845655cb778ae48044cb06bc4f3d92e7d994cc0c /src/compat/glibc_compat.cpp | |
parent | bca5ee6f38f0ac89f0bb90d9e005b5bbd7c25b82 (diff) | |
download | bitcoin-52f0be3a933225429b9b59b58de4fe54c2b20a02.tar.xz |
compat: remove memcpy -> memmove backwards compatibility alias
In glib 2.13 memcpy was changed such that the way it copied bytes was reversed.
This caused all sorts of issues for existing software, which depended on the
existing behavior (when they should have been using memmove). See:
https://sourceware.org/bugzilla/show_bug.cgi?id=12518
https://bugzilla.redhat.com/show_bug.cgi?id=638477
Now that we require glibc 2.17+ (#17538), we should be well clear of having to
maintain our memcpy -> memmove aliasing, which was introduced in #4339.
Diffstat (limited to 'src/compat/glibc_compat.cpp')
-rw-r--r-- | src/compat/glibc_compat.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/compat/glibc_compat.cpp b/src/compat/glibc_compat.cpp index 8a51f310f7..ff581d4a9e 100644 --- a/src/compat/glibc_compat.cpp +++ b/src/compat/glibc_compat.cpp @@ -9,13 +9,6 @@ #include <cstddef> #include <cstdint> -// Prior to GLIBC_2.14, memcpy was aliased to memmove. -extern "C" void* memmove(void* a, const void* b, size_t c); -extern "C" void* memcpy(void* a, const void* b, size_t c) -{ - return memmove(a, b, c); -} - #if defined(__i386__) || defined(__arm__) extern "C" int64_t __udivmoddi4(uint64_t u, uint64_t v, uint64_t* rp); |