1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/redis/remove-version-check.patch
3 # Copyright (C) 2022 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- redis-6.2.6/src/zmalloc.h.vanilla 2022-02-19 12:46:19.124000000 +0200
15 +++ redis-6.2.6/src/zmalloc.h 2022-02-19 12:46:49.114000000 +0200
17 #elif defined(USE_JEMALLOC)
18 #define ZMALLOC_LIB ("jemalloc-" __xstr(JEMALLOC_VERSION_MAJOR) "." __xstr(JEMALLOC_VERSION_MINOR) "." __xstr(JEMALLOC_VERSION_BUGFIX))
19 #include <jemalloc/jemalloc.h>
20 -#if (JEMALLOC_VERSION_MAJOR == 2 && JEMALLOC_VERSION_MINOR >= 1) || (JEMALLOC_VERSION_MAJOR > 2)
21 -#define HAVE_MALLOC_SIZE 1
22 #define zmalloc_size(p) je_malloc_usable_size(p)
24 -#error "Newer version of jemalloc required"
27 #elif defined(__APPLE__)
28 #include <malloc/malloc.h>