[Libwebsockets] About eventfd in libwebsockets

Felix Zhang guojunzhang1981 at gmail.com
Wed Jul 29 21:02:47 CEST 2020


Hi Andy,

I hope you are doing great.
I'm recently compiling libwebsockets v4, I got a compile issue when build
with uClibc-0.9.33.2.
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.

Sincerely,
Felix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20200729/4cb38ed4/attachment.htm>


More information about the Libwebsockets mailing list