Snapchat / KeyDB

A Multithreaded Fork of Redis
https://keydb.dev
BSD 3-Clause "New" or "Revised" License
11.02k stars 564 forks source link

[BUG] glibc 2.39 compatibility #824

Open osevan opened 2 months ago

osevan commented 2 months ago

i replaced already these files for better compatibility with glibc 2.39 please update code for better portability

sed -i '|-Wno-atomic-alignment|d' KeyDB/src/Makefile sed -i 's#extern "C" pid_t gettid();#extern pid_t gettid (void) __THROW;#g' KeyDB/src/server.cpp sed -i 's#extern "C" pid_t gettid();#extern pid_t gettid (void) THROW;#g' KeyDB/src/replication.cpp sed -i 's#extern "C" pid_t gettid();#extern __pid_t gettid (void) THROW;#g' KeyDB/src/rocksdb.cpp

sed -i 's#if (isnan(incr) || isinf(incr))#if (std::isnan(incr) || std::isinf(incr))#g' KeyDB/src/t_hash.cpp

I can compile only with these flags else not

Thanks and

Best Regards