Commit 186f174
committed
compat.mbedtls: Windows with musl is a POSIX environment for mbedtls's own units
mbedtls chooses its entropy, timing and socket code by asking whether the
environment is Windows or Unix. With musl as the C library on Windows (an
openkal graph) the answer the triple gives is Windows and the headers are
POSIX, so timing.c included windows.h and failed (mcpp-index#435 through
tinyhttps). mbedtls's own units are built without _WIN32 and with __unix__
there; no public header of mbedtls tests either macro. -lbcrypt applies to
Windows with the platform C runtime only.
Measured with mcpp carrying #662: tinyhttps's openkal example cross-builds for
x86_64-windows-gnu and runs its framing tests under Wine.1 parent b2bab2f commit 186f174
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
61 | 77 | | |
62 | 78 | | |
63 | 79 | | |
0 commit comments