Commit dd0f801
committed
fix(win): add Windows branch to pb_rss_kb + link psapi
CI Windows builds failed in printable_binary.c with:
error: call to undeclared function 'sysconf'
error: use of undeclared identifier '_SC_PAGESIZE'
Fix: extend the pb_rss_kb() RSS-reporting helper with a Windows branch
using GetProcessMemoryInfo from psapi.h (parallel to the existing
__APPLE__ branch using mach_task_basic_info). Make <unistd.h> include
non-Windows-only and add windows.h / psapi.h on Windows.
Also: pass -lpsapi to 'zig cc' so GetProcessMemoryInfo links cleanly
in the Windows job.1 parent 15ec821 commit dd0f801
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
1633 | 1638 | | |
1634 | 1639 | | |
1635 | 1640 | | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
1636 | 1645 | | |
1637 | 1646 | | |
1638 | 1647 | | |
| |||
0 commit comments