Skip to content

Commit 77bf49e

Browse files
committed
Fixed detection of endianness introduced in fcb5e172abaf.
Previously, NJS_HAVE_LITTLE_ENDIAN was declared unconditionally. This correctly fixes nginx#326 issue on Github.
1 parent b02f05a commit 77bf49e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

auto/endianness

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Copyright (C) NGINX, Inc.
44

55
njs_found=no
6-
NJS_BYTE_ORDER=little
76

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

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

3332
else

0 commit comments

Comments
 (0)