Skip to content

Commit

Permalink
Move to another patch file
Browse files Browse the repository at this point in the history
  • Loading branch information
disa6302 committed Oct 24, 2023
1 parent a6c7de2 commit d94a3da
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion CMake/Dependencies/libwebsockets-CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.6.3)

project(libwebsocket-download NONE)

SET(PATCH_COMMAND git apply --verbose --ignore-whitespace ${CMAKE_CURRENT_LIST_DIR}/libwebsockets-old-gcc-fix-cast-cmakelists.patch)
SET(PATCH_COMMAND git apply --verbose --ignore-whitespace ${CMAKE_CURRENT_LIST_DIR}/libwebsockets-old-gcc-fix-cast-cmakelists.patch ${CMAKE_CURRENT_LIST_DIR}/libwebsockets-lwsmap-fix.patch)

include(ExternalProject)
if (BUILD_STATIC_LIBS)
Expand Down
18 changes: 18 additions & 0 deletions CMake/Dependencies/libwebsockets-lwsmap-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/lib/core/lws_map.c b/lib/core/lws_map.c
index d149d86752..b319d79f49 100644
--- a/lib/core/lws_map.c
+++ b/lib/core/lws_map.c
@@ -29,11 +29,11 @@ typedef struct lws_map_hashtable {
lws_dll2_owner_t ho;
} lws_map_hashtable_t;

-typedef struct lws_map {
+struct lws_map {
lws_map_info_t info;

/* array of info.modulo x lws_map_hashtable_t overallocated */
-} lws_map_t;
+};

typedef struct lws_map_item {
lws_dll2_t list; /* owned by hashtable */
24 changes: 3 additions & 21 deletions CMake/Dependencies/libwebsockets-old-gcc-fix-cast-cmakelists.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ index 68629e6f..6ef628b8 100644
--- a/lib/roles/h2/hpack.c
+++ b/lib/roles/h2/hpack.c
@@ -1110,7 +1110,7 @@ pre_data:

for (n = 0; n < 8; n++) {
if (h2n->huff) {
- char b = (c >> 7) & 1;
Expand All @@ -17,7 +17,7 @@ index b214df75..06eaf255 100644
+++ b/lib/tls/CMakeLists.txt
@@ -57,10 +57,10 @@ if (LWS_WITH_BORINGSSL)
endif()

if (LWS_WITH_SSL AND NOT LWS_WITH_WOLFSSL AND NOT LWS_WITH_MBEDTLS)
- if ("${LWS_OPENSSL_LIBRARIES}" STREQUAL "" OR "${LWS_OPENSSL_INCLUDE_DIRS}" STREQUAL "")
+ if (("${LWS_OPENSSL_LIBRARIES}" STREQUAL "" AND ("${LWS_OPENSSL_SSL_LIBRARY}" STREQUAL "" OR "${LWS_OPENSSL_CRYPTO_LIBRARY}" STREQUAL "")) OR "${LWS_OPENSSL_INCLUDE_DIRS}" STREQUAL "")
Expand All @@ -38,22 +38,4 @@ index b214df75..06eaf255 100644
+ endif()
set(OPENSSL_LIBRARIES ${OPENSSL_LIBRARIES} PARENT_SCOPE)
endif()
set(OPENSSL_INCLUDE_DIRS "${OPENSSL_INCLUDE_DIR}")
diff --git a/lib/core/lws_map.c b/lib/core/lws_map.c
index d149d8675..b319d79f4 100644
--- a/lib/core/lws_map.c
+++ b/lib/core/lws_map.c
@@ -29,11 +29,11 @@ typedef struct lws_map_hashtable {
lws_dll2_owner_t ho;
} lws_map_hashtable_t;

-typedef struct lws_map {
+struct lws_map {
lws_map_info_t info;

/* array of info.modulo x lws_map_hashtable_t overallocated */
-} lws_map_t;
+};

typedef struct lws_map_item {
lws_dll2_t list; /* owned by hashtable */
set(OPENSSL_INCLUDE_DIRS "${OPENSSL_INCLUDE_DIR}")

0 comments on commit d94a3da

Please sign in to comment.