summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_unix.h
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2018-07-16 13:30:11 +0300
committerSergey Kandaurov <pluknet@nginx.com>2018-07-16 13:30:11 +0300
commit7c5a710c5543debff0c70cb4839e15e9a1da322b (patch)
treea7ee30b8e7aa308a19ee8a98bc745f6a26d9cf38 /src/nxt_unix.h
parentbf1cb8f399b2b580da5c014439eff038e9d1315f (diff)
downloadunit-7c5a710c5543debff0c70cb4839e15e9a1da322b.tar.gz
unit-7c5a710c5543debff0c70cb4839e15e9a1da322b.tar.bz2
Added getentropy() support.
Prodded by David Carlier.
Diffstat (limited to 'src/nxt_unix.h')
-rw-r--r--src/nxt_unix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_unix.h b/src/nxt_unix.h
index 33e9f247..151dd555 100644
--- a/src/nxt_unix.h
+++ b/src/nxt_unix.h
@@ -234,6 +234,8 @@
#include <sys/random.h> /* getrandom(). */
#elif (NXT_HAVE_LINUX_SYS_GETRANDOM)
#include <linux/random.h> /* SYS_getrandom. */
+#elif (NXT_HAVE_GETENTROPY_SYS_RANDOM)
+#include <sys/random.h> /* getentropy(). */
#endif