Clashing symbol name on MacOS EV_ERROR
Alex
alex at stty.io
Tue Mar 28 12:17:15 CEST 2017
Hi, I'm using libev indirectly via a redis client[0] and I'm facing the
following error when compiling:
In file included from /usr/local/include/redox/client.hpp:39:
In file included from /usr/local/include/hiredis/adapters/libev.h:35:
/usr/local/include/ev.h:240:3: error: expected identifier
EV_ERROR = (int)0x80000000 /* sent when an error occurs */
^
/usr/include/sys/event.h:167:29: note: expanded from macro 'EV_ERROR'
#define EV_ERROR 0x4000 /* error, data contains errno */
^
1 error generated.
It seems like EV_ERROR is predefined in /usr/include/sys/event.h as well on
MacOS.
I did some searching and it seems like it was previously reported[1] on this
mailing list with no reply so I'd like to bump this issue up.
Thanks
Alex
[0] https://github.com/hmartiro/redox
[1] http://lists.schmorp.de/pipermail/libev/2015q3/002566.html
More information about the libev
mailing list