1
0
Fork 0
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:
Andy Green 2020-07-29 20:36:19 +01:00
parent ddcbb6fa80
commit 140c1ede53
2 changed files with 5 additions and 1 deletions

View file

@ -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)

View file

@ -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;