Build fiber's demos sucessfully on cs6 and cs5

This commit is contained in:
zhengshuxin 2023-04-11 15:59:13 +08:00
parent 661fd20115
commit af706f7143
4 changed files with 5 additions and 3 deletions

View File

@ -74,7 +74,7 @@ endif
#Path for Linux
ifeq ($(findstring Linux, $(UNIXNAME)), Linux)
# CFLAGS += -DLINUX2
SYSLIB += -lcrypt -rdynamic -ldl
SYSLIB += -lcrypt -rdynamic -ldl -lrt
ifeq ($(HAS_IO_URING), yes)
SYSLIB += -luring
endif

View File

@ -79,7 +79,7 @@ ifeq ($(findstring Linux, $(UNIXNAME)), Linux)
endif
# CFLAGS += -DLINUX2 -D_REENTRANT
CFLAGS += -D_REENTRANT
SYSLIB += -lcrypt
SYSLIB += -lcrypt -lrt
endif
#Path for SunOS

View File

@ -115,7 +115,7 @@ void redis_thread::fiber_redis(ACL_FIBER *, void *ctx)
gettimeofday(&begin, NULL);
if (cmd == "set" || cmd == "all") {
n += redis_set(redis, begin, oper_count);
n += ::redis_set(redis, begin, oper_count);
}
if (cmd == "get" || cmd == "all") {

View File

@ -1,3 +1,5 @@
#pragma once
class redis_thread : public acl::thread
{
public: