[Libwebsockets] About eventfd in libwebsockets

Andy Green andy at warmcat.com
Wed Jul 29 21:38:26 CEST 2020

On 7/29/20 8:02 PM, Felix Zhang wrote:
> Hi Andy,
> I hope you are doing great.
> I'm recently compiling libwebsockets v4, I got a compile issue 
> when build with uClibc-
> which has an eventfd API but no eventfd_read and eventfd_write.
> in CMakeLists.txt, we use eventfd to determine LWS_HAVE_EVENTFD macro,
> https://libwebsockets.org/git/libwebsockets/tree/CMakeLists.txt?h=v4.0-stable#n914 
> and we use eventfd_read under the LWS_HAVE_EVENTFD macro
> https://libwebsockets.org/git/libwebsockets/tree/lib/roles/pipe/ops-pipe.c?h=v4.0-stable#n33
> Just let you know about this case.
> I'm currently using eventfd_read to determine LWS_HAVE_EVENTFD macro.

I see, thanks ... I pushed a patch doing the same on v4.0-stable and 
added the equivalent on master I'll push tomorrow.


More information about the Libwebsockets mailing list