From 249e599bd1e05795f2547e1de49ced16142e9ec1 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Sat, 31 Oct 2020 11:56:37 +0800 Subject: [PATCH] compile error in windows --- src/util/src/talloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/src/talloc.c b/src/util/src/talloc.c index 6f23b39393..d3d8ee8116 100644 --- a/src/util/src/talloc.c +++ b/src/util/src/talloc.c @@ -17,8 +17,10 @@ #include "os.h" #include "taoserror.h" #include "tulog.h" +#include "talloc.h" #define TSDB_HAVE_MEMALIGN +#ifndef TSDB_USE_SYS_MEM void *tmalloc(int32_t size) { void *p = malloc(size); @@ -74,3 +76,4 @@ void *tmemalign(int32_t alignment, int32_t size) { void *tmemalign(int32_t alignment, int32_t size) { return tmalloc(size); } #endif +#endif \ No newline at end of file -- GitLab