Welcome! Log In Create A New Profile

Advanced

[njs] Fixed detection of endianness introduced in fcb5e172abaf.

Dmitry Volyntsev
July 15, 2020 11:40AM
details: https://hg.nginx.org/njs/rev/c39329b57a06
branches:
changeset: 1470:c39329b57a06
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Wed Jul 15 15:34:16 2020 +0000
description:
Fixed detection of endianness introduced in fcb5e172abaf.

Previously, NJS_HAVE_LITTLE_ENDIAN was declared unconditionally.

This correctly fixes #326 issue on Github.

diffstat:

auto/endianness | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 2ed052ecdc66 -r c39329b57a06 auto/endianness
--- a/auto/endianness Tue Jul 14 18:22:03 2020 +0000
+++ b/auto/endianness Wed Jul 15 15:34:16 2020 +0000
@@ -3,7 +3,6 @@
# Copyright (C) NGINX, Inc.

njs_found=no
-NJS_BYTE_ORDER=little

njs_feature="system byte ordering"
njs_feature_name=NJS_BYTE_ORDER
@@ -27,7 +26,7 @@ if [ $njs_found = no ]; then
exit 1;
fi

-if [ $NJS_BYTE_ORDER = big ]; then
+if [ $njs_feature_value = big ]; then
njs_define=NJS_HAVE_BIG_ENDIAN . auto/define

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

[njs] Fixed detection of endianness introduced in fcb5e172abaf.

Dmitry Volyntsev 78 July 15, 2020 11:40AM



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

Online Users

Guests: 103
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready