nanomsg / nng

nanomsg-next-generation -- light-weight brokerless messaging
https://nng.nanomsg.org
MIT License
3.78k stars 485 forks source link

Missing Header in posix_rand_getrandom.c #1804

Closed shikokuchuo closed 5 months ago

shikokuchuo commented 5 months ago

Describe the bug

The only included header in that file is <sys/random.h>, which is not self-sufficient. Requires a prior size_t definition from

Expected behavior No error.

Actual Behavior Causes build failure when cross-compiling to WASM using Emscripten.

To Reproduce See for example: https://github.com/r-universe/shikokuchuo/actions/runs/8638527703/job/23683225713#step:5:471

Environment Details