From ddf1068c74614ff274b90e70057a44b72d528a73 Mon Sep 17 00:00:00 2001 From: Alexander Turenko Date: Mon, 3 Oct 2022 19:48:15 +0300 Subject: [PATCH] build: fix compilation against tarantool 2.10.3+ An inclusion of `string.h` header file was removed from `tarantool/module.h` in tarantool 2.10.3, see [1]. This module uses `strstr()`, `strlen()` and `memcpy()` functions defined by `string.h`, so it must include this header. The problem affects the `Debug` build type, which is default for the `cmake . && make` build flow (it is usually used by developers of the module). This build type adds `-Werror` compilation flag. However the problem doesn't affect the `tarantoolctl rocks install tuple-keydef []` build flow, because it uses the `RelWithDebInfo` build type. All compiler warnings are just warnings here. [1]: https://github.com/tarantool/tarantool/pull/7663 Fixes #24 --- tuple/keydef.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tuple/keydef.c b/tuple/keydef.c index 4e33de9..753b698 100644 --- a/tuple/keydef.c +++ b/tuple/keydef.c @@ -31,6 +31,7 @@ #include #include +#include #include #include #include