Commit 2a97ccc
committed
fix(probe): cast timeval fields to platform width (unblocks macOS/Windows build)
The setup-zig re-pin in the previous commit unmasked a pre-existing
cross-platform compile error that the broken action had hidden by failing
before the build ever ran. posix.timeval field widths vary by platform:
- Linux: sec/usec are i64 -> compiled (only passing OS)
- Windows: sec/usec are c_long/i32 -> error: expected c_long, found i64 (.sec)
- macOS: sec i64, usec i32 -> error: expected i32, found i64 (.usec)
Assigning i64 locals only compiled on Linux. Inline @intcast into the
field initialisers so each value coerces to the platform field type.
The matrix only compiles on macOS/Windows (run-integration: false), so
this is sufficient for a green build; Winsock SO_RCVTIMEO runtime
semantics are unchanged and out of scope here.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LvsZgNxFbeqfRmrVFNhJ8G1 parent 518a8ac commit 2a97ccc
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
200 | 200 | | |
201 | | - | |
202 | | - | |
| 201 | + | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| |||
0 commit comments