mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-02 03:47:53 +08:00
Build fiber's demos sucessfully on cs6 and cs5
This commit is contained in:
parent
661fd20115
commit
af706f7143
@ -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
|
||||
|
@ -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
|
||||
|
@ -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") {
|
||||
|
@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
class redis_thread : public acl::thread
|
||||
{
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user