Skip to content

Commit fa575df

Browse files
committed
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 [<version>]` build flow, because it uses the `RelWithDebInfo` build type. All compiler warnings are just warnings here. [1]: tarantool/tarantool#7663 Fixes #24
1 parent af1f6a5 commit fa575df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tuple/keydef.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
#include <assert.h>
3333
#include <stdint.h>
34+
#include <string.h>
3435
#include <lua.h>
3536
#include <lauxlib.h>
3637
#include <tarantool/module.h>

0 commit comments

Comments
 (0)