Commit 88c12f1
committed
fix(diagnostics): include <poll.h> only on POSIX targets
Process.cpp included <poll.h> unconditionally, above the
!defined(_WIN32) block every other POSIX header already lives in. poll()
is used only on the POSIX path, but the include alone made the file -- and
with it sharp_runtime_diagnostics -- fail to compile for every Windows
target: CNA's MinGW cross-build (CNA_PLATFORM=WIN32) stopped at
"fatal error: poll.h: No such file or directory", and MSVC has no such
header either. The include moves into the POSIX block.
Found by CNA's native-platform validation (libcna/cna
plans/plan_native_platform_validation.md NPV-0027); with it the WIN32,
CNA_ENABLE_SDL=OFF, DIRECTX11;DIRECTX12;SOFTWARE;HEADLESS cross-build of
cna_demo_2d.exe completes.1 parent 0c82d9b commit 88c12f1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments