Tencent / libco

libco is a coroutine library which is widely used in wechat back-end service. It has been running on tens of thousands of machines since 2013.
Other
8.3k stars 2.09k forks source link

get compile error on mac osx #4

Open pangweiwei opened 7 years ago

pangweiwei commented 7 years ago

get compile error on mac osx:

co_hook_sys_call.cpp:865:15: error: use of undeclared identifier 'gethostbyname_r' while (ret = gethostbyname_r(name, host, __co_hostbuf_wrap->buffer,

I can't find symbol 'gethostbyname_r' on whole proj.

wechatsunny commented 7 years ago

We can not deal with the gethostbyname on OSX, the compatibility issue here is not enough, we will fix gethostbyname on OSX in future release.

wxfsky commented 7 years ago

环境: OS X: co_routine.cpp:676:33: error: use of undeclared identifier 'EPOLLRDNORM' 查了一下,EPOLLRDNORM 是sys/epoll.h 定义的宏,请问是不是暂时不支持MAC OS?还是说需要我们做修改呢?

rchardzhu commented 7 years ago

fixed in commit 6eb80c7146003cb43d70053d9edd005625c1b292