[njs] Fixed building on modern Linux kernels.

Igor Sysoev igor at sysoev.ru
Fri Oct 28 21:05:47 UTC 2016


details:   http://hg.nginx.org/njs/rev/a1cd4104df67
branches:  
changeset: 229:a1cd4104df67
user:      Igor Sysoev <igor at sysoev.ru>
date:      Sat Oct 29 00:04:29 2016 +0300
description:
Fixed building on modern Linux kernels.

diffstat:

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

diffs (12 lines):

diff -r 9b37882ad552 -r a1cd4104df67 nxt/nxt_random.c
--- a/nxt/nxt_random.c	Fri Oct 28 19:29:38 2016 +0300
+++ b/nxt/nxt_random.c	Sat Oct 29 00:04:29 2016 +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