raitechnology / raikv

Persistent key value store, serverless shared memory caching
Apache License 2.0
7 stars 2 forks source link

include/raikv/util.h : missing #include <stdlib.h> #1

Closed julio77it closed 4 months ago

julio77it commented 2 years ago

Hi,

I'm compiling raitechnology/build on RH7 and I'm getting these errors :

In file included from include/raids/redis_hyperloglog.h:4:0, from test/test_hllnum.cpp:9: raikv/include/raikv/util.h: In function ‘void rai::kv::aligned_malloc(size_t)’: raikv/include/raikv/util.h:131:10: error: ‘::aligned_alloc’ has not been declared return ::aligned_alloc( KV_CACHE_ALIGN, sz ); / >= RH7 / ^ raikv/include/raikv/util.h: In function ‘void rai::kv::aligned_free(void)’: raikv/include/raikv/util.h:140:3: error: ‘::free’ has not been declared ::free( p ); / libc allows this /

I've added this include in include/raikv/util.h at line 4 :

include

and now it works.

injinj commented 2 years ago

ok, thanks