Skip to content

Commit

Permalink
Old gcc patch update
Browse files Browse the repository at this point in the history
  • Loading branch information
disa6302 committed Oct 16, 2023
1 parent 8c14d79 commit e251366
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CMake/Dependencies/libwebsockets-old-gcc-fix-cast-cmakelists.patch
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,21 @@ index b214df75..06eaf255 100644
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 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 */

0 comments on commit e251366

Please sign in to comment.