Skip to content

Commit 06fa2b2

Browse files
committed
win: build fix
1 parent a455241 commit 06fa2b2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

AGENTS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ Lws is unusual in that
8181
- we support a lot of platforms in CI. Code won't pass CI unless it takes care about the spread
8282
of platforms it will be tested on, eg, things that are platform-specific should go in lib/plat
8383
and for "not quite standard" platforms like POSIX on windows, we have to carefully use helpers
84-
like `LWS_POSIX_LENGTH_CAST()` as glue to fill the differences where needed.
84+
like `LWS_POSIX_LENGTH_CAST()` as glue to fill the differences where needed, and `lws_sockfd_type`
85+
which can adapt to needing a HANDLE on windows rather than just assume int.
8586

8687
## Security
8788

lib/roles/quic/ops-quic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ lws_quic_prefaddr_swap_socket(struct lws *nwsi, const lws_sockaddr46 *to_sa46)
6969
struct lws_context_per_thread *pt = &cx->pt[(int)nwsi->tsi];
7070
lws_sock_file_fd_type new_sock;
7171
int fam = to_sa46->sa4.sin_family;
72-
int n_fd;
72+
lws_sockfd_type n_fd;
7373

7474
n_fd = socket(fam, SOCK_DGRAM, 0);
7575
if (!lws_socket_is_valid(n_fd)) {

0 commit comments

Comments
 (0)