summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2019-05-24 10:39:12 +0100
committerJan Beich <jbeich@FreeBSD.org>2019-05-24 10:39:12 +0100
commitcc3d31a46e7e933c4cf89b92be758e3eb376df7d (patch)
tree2e78d17362df7507580bea40a7ad0e3087f687ab
parentdb240c2a77ef90f3d8e15e5291700df3908245ac (diff)
downloadnss-hg-cc3d31a46e7e933c4cf89b92be758e3eb376df7d.tar.gz
Bug 1551041 - Unbreak build on GCC < 4.3 big-endian. r=mt
-rw-r--r--lib/freebl/crypto_primitives.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/freebl/crypto_primitives.c b/lib/freebl/crypto_primitives.c
index 62a2840cc..425f9fcc8 100644
--- a/lib/freebl/crypto_primitives.c
+++ b/lib/freebl/crypto_primitives.c
@@ -22,7 +22,7 @@ swap8b(PRUint64 value)
return (value);
}
-#elif !defined(_MSC_VER) && !__has_builtin(__builtin_bswap64) && !((defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))))
+#elif defined(IS_LITTLE_ENDIAN) && !defined(_MSC_VER) && !__has_builtin(__builtin_bswap64) && !((defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))))
PRUint64
swap8b(PRUint64 x)