Fix the build issue on i386 platform.

Do not bump PORTREVISION cause the port has no successful build on i386.
This commit is contained in:
Sergey A. Osokin 2020-02-29 20:57:10 +00:00
parent d13d0a64a0
commit a00d50aa7a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=527470
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- src/numeric_index.c.orig 2020-02-29 20:43:50 UTC
+++ src/numeric_index.c
@@ -474,7 +474,7 @@ int NumericIndexType_Register(RedisModuleCtx *ctx) {
.rdb_save = NumericIndexType_RdbSave,
.aof_rewrite = GenericAofRewrite_DisabledHandler,
.free = NumericIndexType_Free,
- .mem_usage = NumericIndexType_MemUsage};
+ .mem_usage = (const void *)NumericIndexType_MemUsage};
NumericIndexType = RedisModule_CreateDataType(ctx, "numericdx", NUMERIC_INDEX_ENCVER, &tm);
if (NumericIndexType == NULL) {

View File

@ -0,0 +1,11 @@
--- src/redis_index.c.orig 2020-02-29 20:35:56 UTC
+++ src/redis_index.c
@@ -108,7 +108,7 @@ int InvertedIndex_RegisterType(RedisModuleCtx *ctx) {
.rdb_load = InvertedIndex_RdbLoad,
.rdb_save = InvertedIndex_RdbSave,
.aof_rewrite = GenericAofRewrite_DisabledHandler,
- .mem_usage = InvertedIndex_MemUsage,
+ .mem_usage = (const void *)InvertedIndex_MemUsage,
.free = InvertedIndex_Free};
InvertedIndexType = RedisModule_CreateDataType(ctx, "ft_invidx", INVERTED_INDEX_ENCVER, &tm);