[njs] Fixed building on modern Linux.

Igor Sysoev igor at sysoev.ru
Tue Mar 21 13:22:18 UTC 2017


details:   http://hg.nginx.org/njs/rev/9ee2a6eb381c
branches:  
changeset: 315:9ee2a6eb381c
user:      Igor Sysoev <igor at sysoev.ru>
date:      Tue Mar 21 16:02:03 2017 +0300
description:
Fixed building on modern Linux.

diffstat:

 nxt/nxt_random.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 5c42125bd99c -r 9ee2a6eb381c nxt/nxt_random.c
--- a/nxt/nxt_random.c	Fri Mar 17 18:18:01 2017 +0300
+++ b/nxt/nxt_random.c	Tue Mar 21 16:02:03 2017 +0300
@@ -70,7 +70,7 @@ nxt_random_stir(nxt_random_t *r, nxt_pid
 
     /* Linux 3.17 getrandom(), it is not available in Glibc. */
 
-    n = syscall(SYS_getrandom, key, NXT_RANDOM_KEY_SIZE, 0);
+    n = syscall(SYS_getrandom, &key, NXT_RANDOM_KEY_SIZE, 0);
 
 #endif
 


More information about the nginx-devel mailing list