From: Dmitry Volyntsev Date: Wed, 15 Jul 2020 15:34:16 +0000 (+0000) Subject: Fixed detection of endianness introduced in fcb5e172abaf. X-Git-Tag: 0.4.3~18 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=77bf49ef8cd480d52970a6c4b5647d350c47a8df;p=njs.git Fixed detection of endianness introduced in fcb5e172abaf. Previously, NJS_HAVE_LITTLE_ENDIAN was declared unconditionally. This correctly fixes #326 issue on Github. --- diff --git a/auto/endianness b/auto/endianness index ea835986..953eefac 100644 --- a/auto/endianness +++ b/auto/endianness @@ -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