diff options
author | Sergey A. Osokin <osa@FreeBSD.org> | 2021-02-23 17:54:47 +0000 |
---|---|---|
committer | Sergey A. Osokin <osa@FreeBSD.org> | 2021-02-23 17:54:47 +0000 |
commit | fa6fa5f21b3e214e2cbccc2c2bd597eabab2b339 (patch) | |
tree | f40ec69ef6f1200fa4a38ccc063ff52a6923e043 /databases/redis-devel | |
parent | d5e0bdc8429a6720744077e2a12a79269ece0f9d (diff) | |
download | ports-fa6fa5f21b3e214e2cbccc2c2bd597eabab2b339.tar.gz ports-fa6fa5f21b3e214e2cbccc2c2bd597eabab2b339.zip |
Fix build.
cc -std=c11 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -MMD -o lzf_c.o -c lzf_c.c
zmalloc.c:59:5: error: function-like macro 'sizeof' is not defined
#if PREFIX_SIZE > 0
^
zmalloc.c:55:22: note: expanded from macro 'PREFIX_SIZE'
#define PREFIX_SIZE (sizeof(size_t))
^
1 error generated.
gmake[3]: *** [Makefile:339: zmalloc.o] Error 1
Do not bump PORTREVISION because these have no successful
builds.
Reported by: many
Notes
Notes:
svn path=/head/; revision=566418
Diffstat (limited to 'databases/redis-devel')
-rw-r--r-- | databases/redis-devel/files/patch-src-zmalloc.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/databases/redis-devel/files/patch-src-zmalloc.c b/databases/redis-devel/files/patch-src-zmalloc.c new file mode 100644 index 000000000000..20ac72c2e621 --- /dev/null +++ b/databases/redis-devel/files/patch-src-zmalloc.c @@ -0,0 +1,30 @@ +--- src/zmalloc.c.orig 2021-02-23 11:09:32.095861000 -0500 ++++ src/zmalloc.c 2021-02-23 11:20:04.491174000 -0500 +@@ -40,6 +40,7 @@ + free(ptr); + } + ++#include <assert.h> + #include <string.h> + #include <pthread.h> + #include "config.h" +@@ -48,18 +49,14 @@ + + #ifdef HAVE_MALLOC_SIZE + #define PREFIX_SIZE (0) ++#define ASSERT_NO_SIZE_OVERFLOW(sz) + #else + #if defined(__sun) || defined(__sparc) || defined(__sparc__) + #define PREFIX_SIZE (sizeof(long long)) + #else + #define PREFIX_SIZE (sizeof(size_t)) + #endif +-#endif +- +-#if PREFIX_SIZE > 0 + #define ASSERT_NO_SIZE_OVERFLOW(sz) assert((sz) + PREFIX_SIZE > (sz)) +-#else +-#define ASSERT_NO_SIZE_OVERFLOW(sz) + #endif + + /* Explicitly override malloc/free etc when using tcmalloc. */ |