[njs] Fixed detection of endianness introduced in fcb5e172abaf.
Dmitry Volyntsev
xeioex at nginx.com
Wed Jul 15 15:38:26 UTC 2020
details: https://hg.nginx.org/njs/rev/c39329b57a06
branches:
changeset: 1470:c39329b57a06
user: Dmitry Volyntsev <xeioex at 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
More information about the nginx-devel
mailing list