aboutsummaryrefslogtreecommitdiff
path: root/src/platform/posix
diff options
context:
space:
mode:
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