Welcome! Log In Create A New Profile

Advanced

[njs] Fixed building on modern Linux.

March 21, 2017 09:24AM
details: http://hg.nginx.org/njs/rev/9ee2a6eb381c
branches:
changeset: 315:9ee2a6eb381c
user: Igor Sysoev <igor@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

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Fixed building on modern Linux.

Igor Sysoev 991 March 21, 2017 09:24AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 187
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready