Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows: Fix build error incompatible pointer types
On GitHub workflows, building the native extensions for `cool.io` fails as follows: ../libev/ev.c: In function 'evpipe_write': ../libev/ev.c:2484:19: error: assignment to 'char *' from incompatible pointer type 'WSABUF *' [-Wincompatible-pointer-types] 2484 | buf.buf = &buf; | ^ * Runner: windows-2022 (20240421.1.0) * Use `ruby/setup-ruby v1` to set up Ruby * https://github.com/actions/setup-ruby * Dependency: `cool.io` v1.8.0 The type of `buf` member of `WSABUF` is `char *`: * https://learn.microsoft.com/en-us/windows/win32/api/ws2def/ns-ws2def-wsabuf On `libev` upstream, this was already fixed on v4.25: http://cvs.schmorp.de/libev/ev.c?r1=1.484&r2=1.485&pathrev=rel-4_25 Maybe we should try to update the overall `libev` version, but that could be difficult. So, this commit intends to fix this error first.
- Loading branch information