mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
eventfd: use eventfd_read to check existence since its what we use
This commit is contained in:
parent
ddcbb6fa80
commit
140c1ede53
2 changed files with 5 additions and 1 deletions
|
@ -80,7 +80,7 @@ if (HAIKU)
|
|||
endif()
|
||||
|
||||
IF (CMAKE_SYSTEM_NAME STREQUAL Linux)
|
||||
CHECK_FUNCTION_EXISTS(eventfd LWS_HAVE_EVENTFD)
|
||||
CHECK_FUNCTION_EXISTS(eventfd_read LWS_HAVE_EVENTFD)
|
||||
endif()
|
||||
|
||||
list(APPEND LIB_LIST_AT_END m)
|
||||
|
|
|
@ -313,6 +313,10 @@ secstream_h1(struct lws *wsi, enum lws_callback_reasons reason, void *user,
|
|||
|
||||
#if defined(LWS_WITH_SS_RIDESHARE)
|
||||
|
||||
/*
|
||||
* We should only especially process multipart ourselves if
|
||||
*/
|
||||
|
||||
if (lws_hdr_copy(wsi, (char *)buf, sizeof(buf),
|
||||
WSI_TOKEN_HTTP_CONTENT_TYPE) > 0 &&
|
||||
/* multipart/form-data;
|
||||
|
|
Loading…
Add table
Reference in a new issue