Skip to content

Commit dded96f

Browse files
committed
Move to another patch file
1 parent a6c7de2 commit dded96f

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

CMake/Dependencies/libwebsockets-CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.6.3)
22

33
project(libwebsocket-download NONE)
44

5-
SET(PATCH_COMMAND git apply --verbose --ignore-whitespace ${CMAKE_CURRENT_LIST_DIR}/libwebsockets-old-gcc-fix-cast-cmakelists.patch)
5+
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)
66

77
include(ExternalProject)
88
if (BUILD_STATIC_LIBS)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
diff --git a/lib/core/lws_map.c b/lib/core/lws_map.c
2+
index d149d867..b319d79f 100644
3+
--- a/lib/core/lws_map.c
4+
+++ b/lib/core/lws_map.c
5+
@@ -29,11 +29,11 @@ typedef struct lws_map_hashtable {
6+
lws_dll2_owner_t ho;
7+
} lws_map_hashtable_t;
8+
9+
-typedef struct lws_map {
10+
+struct lws_map {
11+
lws_map_info_t info;
12+
13+
/* array of info.modulo x lws_map_hashtable_t overallocated */
14+
-} lws_map_t;
15+
+};
16+
17+
typedef struct lws_map_item {
18+
lws_dll2_t list; /* owned by hashtable */
19+

CMake/Dependencies/libwebsockets-old-gcc-fix-cast-cmakelists.patch

+3-21
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ index 68629e6f..6ef628b8 100644
33
--- a/lib/roles/h2/hpack.c
44
+++ b/lib/roles/h2/hpack.c
55
@@ -1110,7 +1110,7 @@ pre_data:
6-
6+
77
for (n = 0; n < 8; n++) {
88
if (h2n->huff) {
99
- char b = (c >> 7) & 1;
@@ -17,7 +17,7 @@ index b214df75..06eaf255 100644
1717
+++ b/lib/tls/CMakeLists.txt
1818
@@ -57,10 +57,10 @@ if (LWS_WITH_BORINGSSL)
1919
endif()
20-
20+
2121
if (LWS_WITH_SSL AND NOT LWS_WITH_WOLFSSL AND NOT LWS_WITH_MBEDTLS)
2222
- if ("${LWS_OPENSSL_LIBRARIES}" STREQUAL "" OR "${LWS_OPENSSL_INCLUDE_DIRS}" STREQUAL "")
2323
+ if (("${LWS_OPENSSL_LIBRARIES}" STREQUAL "" AND ("${LWS_OPENSSL_SSL_LIBRARY}" STREQUAL "" OR "${LWS_OPENSSL_CRYPTO_LIBRARY}" STREQUAL "")) OR "${LWS_OPENSSL_INCLUDE_DIRS}" STREQUAL "")
@@ -38,22 +38,4 @@ index b214df75..06eaf255 100644
3838
+ endif()
3939
set(OPENSSL_LIBRARIES ${OPENSSL_LIBRARIES} PARENT_SCOPE)
4040
endif()
41-
set(OPENSSL_INCLUDE_DIRS "${OPENSSL_INCLUDE_DIR}")
42-
diff --git a/lib/core/lws_map.c b/lib/core/lws_map.c
43-
index d149d8675..b319d79f4 100644
44-
--- a/lib/core/lws_map.c
45-
+++ b/lib/core/lws_map.c
46-
@@ -29,11 +29,11 @@ typedef struct lws_map_hashtable {
47-
lws_dll2_owner_t ho;
48-
} lws_map_hashtable_t;
49-
50-
-typedef struct lws_map {
51-
+struct lws_map {
52-
lws_map_info_t info;
53-
54-
/* array of info.modulo x lws_map_hashtable_t overallocated */
55-
-} lws_map_t;
56-
+};
57-
58-
typedef struct lws_map_item {
59-
lws_dll2_t list; /* owned by hashtable */
41+
set(OPENSSL_INCLUDE_DIRS "${OPENSSL_INCLUDE_DIR}")

0 commit comments

Comments
 (0)