]> git.kaiwu.me - njs.git/commitdiff
Fixed detection of endianness introduced in fcb5e172abaf.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 15 Jul 2020 15:34:16 +0000 (15:34 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 15 Jul 2020 15:34:16 +0000 (15:34 +0000)
Previously, NJS_HAVE_LITTLE_ENDIAN was declared unconditionally.

This correctly fixes #326 issue on Github.

auto/endianness

index ea8359862b3467d1b4daf50a9d88fc3ca769181f..953eeface579fc44688d221ff44993cf6961abea 100644 (file)
@@ -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