Commit 098759d
Fix CI: gate POSIX struct iovec asserts on !_WIN32
MSYS2/mingw does not ship <sys/uio.h>, so the layout-pinning asserts
that compare httpserver::iovec_entry against POSIX struct iovec must be
gated. The MHD_IoVec asserts stay unconditional — that's the type the
dispatch path actually casts to, and libmicrohttpd ships its own portable
MHD_IoVec definition.
Files:
- src/iovec_response.cpp: wrap <sys/uio.h> include and the four POSIX
struct iovec asserts (size/base/len/alignof) in #ifndef _WIN32.
- src/details/body.cpp: same — body.cpp duplicates the iovec_response.cpp
asserts during the M2 transition.
- src/httpserver/details/body.hpp: drop <sys/uio.h> include outright;
body.hpp uses iovec_entry (the portable replacement) and MHD_IoVec
but never references POSIX struct iovec.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c05e355 commit 098759d
3 files changed
Lines changed: 24 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
50 | 56 | | |
| 57 | + | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
| |||
57 | 64 | | |
58 | 65 | | |
59 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
60 | 71 | | |
61 | 72 | | |
62 | 73 | | |
| |||
66 | 77 | | |
67 | 78 | | |
68 | 79 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
| 62 | + | |
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
| |||
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
65 | 76 | | |
66 | 77 | | |
67 | 78 | | |
| |||
75 | 86 | | |
76 | 87 | | |
77 | 88 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
| |||
0 commit comments