aboutsummaryrefslogtreecommitdiff
path: root/src/platform/posix
diff options
context:
space:
mode:
authorshikokuchuo <53399081+shikokuchuo@users.noreply.github.com>2024-04-11 10:22:57 +0100
committerGarrett D'Amore <garrett@damore.org>2024-04-13 20:43:14 -0700
commit9e2403302e890f96f7e9d9f65355ad993fbfa24d (patch)
tree86166a1daed9fc2b9a635653a9d4008996e59eb5 /src/platform/posix
parentdf371e0a77e5b30f5ebddd0902fc8dd46b349849 (diff)
downloadnng-9e2403302e890f96f7e9d9f65355ad993fbfa24d.tar.gz
nng-9e2403302e890f96f7e9d9f65355ad993fbfa24d.tar.bz2
nng-9e2403302e890f96f7e9d9f65355ad993fbfa24d.zip
add header to posix_rand_getrandom.c
Diffstat (limited to 'src/platform/posix')
-rw-r--r--src/platform/posix/posix_rand_getrandom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platform/posix/posix_rand_getrandom.c b/src/platform/posix/posix_rand_getrandom.c
index 489b2c76..03b0f05f 100644
--- a/src/platform/posix/posix_rand_getrandom.c
+++ b/src/platform/posix/posix_rand_getrandom.c
@@ -15,6 +15,7 @@
// normally be running. This is the only time it can fail with correct
// arguments, and then only if it is interrupted with a signal.
+#include <stddef.h>
#include <sys/random.h>
#include "core/nng_impl.h"
@@ -37,4 +38,4 @@ nni_random(void)
return (val);
}
-#endif \ No newline at end of file
+#endif